]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: at91/soc: Introduce register_devices callback
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 2 Jul 2014 15:49:28 +0000 (17:49 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 25 Aug 2014 14:04:26 +0000 (16:04 +0200)
Some core devices should be registered by the SoC itself rather than by every
board using this SoC. Introduce a register_devices callback that should be
called during the init_machine in order to do that.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/generic.h
arch/arm/mach-at91/setup.c
arch/arm/mach-at91/soc.h

index 631fa3b8c16d77be9832f7aa89345e9e7259e94d..4c2c96195a50420f62254f84a6637271534f0bf3 100644 (file)
@@ -37,6 +37,8 @@ extern int  __init at91_aic5_of_init(struct device_node *node,
 extern void __init at91_sysirq_mask_rtc(u32 rtc_base);
 extern void __init at91_sysirq_mask_rtt(u32 rtt_base);
 
+ /* Devices */
+extern void __init at91_register_devices(void);
 
  /* Timer */
 extern void at91rm9200_ioremap_st(u32 addr);
index 640c21e43a425e5b33e5f0e17c6ad7928a3ff148..25196d5096beb09ef72b6ad40b609c355f221f64 100644 (file)
@@ -510,3 +510,8 @@ void __init at91_initialize(unsigned long main_clock)
 
        pinctrl_provide_dummies();
 }
+
+void __init at91_register_devices(void)
+{
+       at91_boot_soc.register_devices();
+}
index a1e1482c6da860536e3e44980a501274527990d9..ab983f2cc7ddd371078307284a50903279367f34 100644 (file)
@@ -11,6 +11,7 @@ struct at91_init_soc {
        void (*map_io)(void);
        void (*ioremap_registers)(void);
        void (*register_clocks)(void);
+       void (*register_devices)(void);
        void (*init)(void);
 };