diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-04-26 04:06:50 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-08 08:36:20 -0400 |
commit | bbd707acee279a61177a604822db92e8164d00db (patch) | |
tree | fe806947f2082f469a7e39683d6e275d694ec666 /arch/arm/mach-omap2/common.h | |
parent | 82c3bd03535f1571426fdd19b7d832f76b7ac85e (diff) |
ARM: omap2: use machine specific hook for late init
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/common.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 57da7f406e28..58ef29b1c7d7 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -78,6 +78,42 @@ static inline void omap44xx_map_common_io(void) | |||
78 | } | 78 | } |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP2) | ||
82 | int omap2_pm_init(void); | ||
83 | #else | ||
84 | static inline int omap2_pm_init(void) | ||
85 | { | ||
86 | return 0; | ||
87 | } | ||
88 | #endif | ||
89 | |||
90 | #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) | ||
91 | int omap3_pm_init(void); | ||
92 | #else | ||
93 | static inline int omap3_pm_init(void) | ||
94 | { | ||
95 | return 0; | ||
96 | } | ||
97 | #endif | ||
98 | |||
99 | #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP4) | ||
100 | int omap4_pm_init(void); | ||
101 | #else | ||
102 | static inline int omap4_pm_init(void) | ||
103 | { | ||
104 | return 0; | ||
105 | } | ||
106 | #endif | ||
107 | |||
108 | #ifdef CONFIG_OMAP_MUX | ||
109 | int omap_mux_late_init(void); | ||
110 | #else | ||
111 | static inline int omap_mux_late_init(void) | ||
112 | { | ||
113 | return 0; | ||
114 | } | ||
115 | #endif | ||
116 | |||
81 | extern void omap2_init_common_infrastructure(void); | 117 | extern void omap2_init_common_infrastructure(void); |
82 | 118 | ||
83 | extern struct sys_timer omap2_timer; | 119 | extern struct sys_timer omap2_timer; |
@@ -94,6 +130,17 @@ void omap3_init_early(void); /* Do not use this one */ | |||
94 | void am35xx_init_early(void); | 130 | void am35xx_init_early(void); |
95 | void ti81xx_init_early(void); | 131 | void ti81xx_init_early(void); |
96 | void omap4430_init_early(void); | 132 | void omap4430_init_early(void); |
133 | void omap3_init_late(void); /* Do not use this one */ | ||
134 | void omap4430_init_late(void); | ||
135 | void omap2420_init_late(void); | ||
136 | void omap2430_init_late(void); | ||
137 | void omap3430_init_late(void); | ||
138 | void omap35xx_init_late(void); | ||
139 | void omap3630_init_late(void); | ||
140 | void am35xx_init_late(void); | ||
141 | void ti81xx_init_late(void); | ||
142 | void omap4430_init_late(void); | ||
143 | int omap2_common_pm_late_init(void); | ||
97 | void omap_prcm_restart(char, const char *); | 144 | void omap_prcm_restart(char, const char *); |
98 | 145 | ||
99 | /* | 146 | /* |