Commit 65f2ce96 authored by Maxime Ripard's avatar Maxime Ripard Committed by Nicolas Ferre

ARM: at91/soc: Introduce register_devices callback

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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 4b0a683c
...@@ -37,6 +37,8 @@ extern int __init at91_aic5_of_init(struct device_node *node, ...@@ -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_rtc(u32 rtc_base);
extern void __init at91_sysirq_mask_rtt(u32 rtt_base); extern void __init at91_sysirq_mask_rtt(u32 rtt_base);
/* Devices */
extern void __init at91_register_devices(void);
/* Timer */ /* Timer */
extern void at91rm9200_ioremap_st(u32 addr); extern void at91rm9200_ioremap_st(u32 addr);
......
...@@ -510,3 +510,8 @@ void __init at91_initialize(unsigned long main_clock) ...@@ -510,3 +510,8 @@ void __init at91_initialize(unsigned long main_clock)
pinctrl_provide_dummies(); pinctrl_provide_dummies();
} }
void __init at91_register_devices(void)
{
at91_boot_soc.register_devices();
}
...@@ -11,6 +11,7 @@ struct at91_init_soc { ...@@ -11,6 +11,7 @@ struct at91_init_soc {
void (*map_io)(void); void (*map_io)(void);
void (*ioremap_registers)(void); void (*ioremap_registers)(void);
void (*register_clocks)(void); void (*register_clocks)(void);
void (*register_devices)(void);
void (*init)(void); void (*init)(void);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment