aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/common.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-04-26 04:06:50 -0400
committerShawn Guo <shawn.guo@linaro.org>2012-05-08 08:36:20 -0400
commitbbd707acee279a61177a604822db92e8164d00db (patch)
treefe806947f2082f469a7e39683d6e275d694ec666 /arch/arm/mach-omap2/common.h
parent82c3bd03535f1571426fdd19b7d832f76b7ac85e (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.h47
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)
82int omap2_pm_init(void);
83#else
84static inline int omap2_pm_init(void)
85{
86 return 0;
87}
88#endif
89
90#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3)
91int omap3_pm_init(void);
92#else
93static inline int omap3_pm_init(void)
94{
95 return 0;
96}
97#endif
98
99#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP4)
100int omap4_pm_init(void);
101#else
102static inline int omap4_pm_init(void)
103{
104 return 0;
105}
106#endif
107
108#ifdef CONFIG_OMAP_MUX
109int omap_mux_late_init(void);
110#else
111static inline int omap_mux_late_init(void)
112{
113 return 0;
114}
115#endif
116
81extern void omap2_init_common_infrastructure(void); 117extern void omap2_init_common_infrastructure(void);
82 118
83extern struct sys_timer omap2_timer; 119extern struct sys_timer omap2_timer;
@@ -94,6 +130,17 @@ void omap3_init_early(void); /* Do not use this one */
94void am35xx_init_early(void); 130void am35xx_init_early(void);
95void ti81xx_init_early(void); 131void ti81xx_init_early(void);
96void omap4430_init_early(void); 132void omap4430_init_early(void);
133void omap3_init_late(void); /* Do not use this one */
134void omap4430_init_late(void);
135void omap2420_init_late(void);
136void omap2430_init_late(void);
137void omap3430_init_late(void);
138void omap35xx_init_late(void);
139void omap3630_init_late(void);
140void am35xx_init_late(void);
141void ti81xx_init_late(void);
142void omap4430_init_late(void);
143int omap2_common_pm_late_init(void);
97void omap_prcm_restart(char, const char *); 144void omap_prcm_restart(char, const char *);
98 145
99/* 146/*