diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-01-15 09:59:27 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-01-16 12:08:40 -0500 |
commit | 4db0ba22da9f4406c292a6a6110eeb2edd12f16a (patch) | |
tree | 75afb7f5018a3eaeb7f2328c13d7a43f5247c2fa /arch/arm/mach-at91/generic.h | |
parent | a63ba4114690cad6e71cbcfd187b0ebf20321dfa (diff) |
ARM: at91: pm: prepare for multiplatform
Split at91_pm_init() in three variants that are called by the respective SoCs
.init_machine. This allows to remove the of_machine_is_compatible() calls and
move at91_pm_init() out of arch_initcall() which is required for multiplatform.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/generic.h')
-rw-r--r-- | arch/arm/mach-at91/generic.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index 54f3837a0a4d..fae7a703813c 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h | |||
@@ -31,4 +31,16 @@ extern void at91sam9_idle(void); | |||
31 | 31 | ||
32 | /* Matrix */ | 32 | /* Matrix */ |
33 | extern void at91_ioremap_matrix(u32 base_addr); | 33 | extern void at91_ioremap_matrix(u32 base_addr); |
34 | |||
35 | |||
36 | #ifdef CONFIG_PM | ||
37 | extern void __init at91_rm9200_pm_init(void); | ||
38 | extern void __init at91_sam9260_pm_init(void); | ||
39 | extern void __init at91_sam9g45_pm_init(void); | ||
40 | #else | ||
41 | void __init at91_rm9200_pm_init(void) { } | ||
42 | void __init at91_sam9260_pm_init(void) { } | ||
43 | void __init at91_sam9g45_pm_init(void) { } | ||
44 | #endif | ||
45 | |||
34 | #endif /* _AT91_GENERIC_H */ | 46 | #endif /* _AT91_GENERIC_H */ |