aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/common.h')
-rw-r--r--arch/arm/mach-omap2/common.h134
1 files changed, 35 insertions, 99 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h
index fd97f317de2e..948bcaa82eb6 100644
--- a/arch/arm/mach-omap2/common.h
+++ b/arch/arm/mach-omap2/common.h
@@ -41,54 +41,6 @@
41 41
42#define OMAP_INTC_START NR_IRQS 42#define OMAP_INTC_START NR_IRQS
43 43
44#ifdef CONFIG_SOC_OMAP2420
45extern void omap242x_map_common_io(void);
46#else
47static inline void omap242x_map_common_io(void)
48{
49}
50#endif
51
52#ifdef CONFIG_SOC_OMAP2430
53extern void omap243x_map_common_io(void);
54#else
55static inline void omap243x_map_common_io(void)
56{
57}
58#endif
59
60#ifdef CONFIG_ARCH_OMAP3
61extern void omap34xx_map_common_io(void);
62#else
63static inline void omap34xx_map_common_io(void)
64{
65}
66#endif
67
68#ifdef CONFIG_SOC_TI81XX
69extern void omapti81xx_map_common_io(void);
70#else
71static inline void omapti81xx_map_common_io(void)
72{
73}
74#endif
75
76#ifdef CONFIG_SOC_AM33XX
77extern void omapam33xx_map_common_io(void);
78#else
79static inline void omapam33xx_map_common_io(void)
80{
81}
82#endif
83
84#ifdef CONFIG_ARCH_OMAP4
85extern void omap44xx_map_common_io(void);
86#else
87static inline void omap44xx_map_common_io(void)
88{
89}
90#endif
91
92#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP2) 44#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP2)
93int omap2_pm_init(void); 45int omap2_pm_init(void);
94#else 46#else
@@ -125,19 +77,12 @@ static inline int omap_mux_late_init(void)
125} 77}
126#endif 78#endif
127 79
128#ifdef CONFIG_SOC_OMAP5
129extern void omap5_map_common_io(void);
130#else
131static inline void omap5_map_common_io(void)
132{
133}
134#endif
135
136extern void omap2_init_common_infrastructure(void); 80extern void omap2_init_common_infrastructure(void);
137 81
138extern struct sys_timer omap2_timer; 82extern struct sys_timer omap2_timer;
139extern struct sys_timer omap3_timer; 83extern struct sys_timer omap3_timer;
140extern struct sys_timer omap3_secure_timer; 84extern struct sys_timer omap3_secure_timer;
85extern struct sys_timer omap3_gp_timer;
141extern struct sys_timer omap3_am33xx_timer; 86extern struct sys_timer omap3_am33xx_timer;
142extern struct sys_timer omap4_timer; 87extern struct sys_timer omap4_timer;
143extern struct sys_timer omap5_timer; 88extern struct sys_timer omap5_timer;
@@ -165,52 +110,43 @@ void am35xx_init_late(void);
165void ti81xx_init_late(void); 110void ti81xx_init_late(void);
166void omap4430_init_late(void); 111void omap4430_init_late(void);
167int omap2_common_pm_late_init(void); 112int omap2_common_pm_late_init(void);
168void omap_prcm_restart(char, const char *);
169 113
170/* 114#if defined(CONFIG_SOC_OMAP2420) || defined(CONFIG_SOC_OMAP2430)
171 * IO bases for various OMAP processors 115void omap2xxx_restart(char mode, const char *cmd);
172 * Except the tap base, rest all the io bases
173 * listed are physical addresses.
174 */
175struct omap_globals {
176 u32 class; /* OMAP class to detect */
177 void __iomem *tap; /* Control module ID code */
178 void __iomem *sdrc; /* SDRAM Controller */
179 void __iomem *sms; /* SDRAM Memory Scheduler */
180 void __iomem *ctrl; /* System Control Module */
181 void __iomem *ctrl_pad; /* PAD Control Module */
182 void __iomem *prm; /* Power and Reset Management */
183 void __iomem *cm; /* Clock Management */
184 void __iomem *cm2;
185 void __iomem *prcm_mpu;
186};
187
188void omap2_set_globals_242x(void);
189void omap2_set_globals_243x(void);
190void omap2_set_globals_3xxx(void);
191void omap2_set_globals_443x(void);
192void omap2_set_globals_5xxx(void);
193void omap2_set_globals_ti81xx(void);
194void omap2_set_globals_am33xx(void);
195
196/* These get called from omap2_set_globals_xxxx(), do not call these */
197void omap2_set_globals_tap(struct omap_globals *);
198#if defined(CONFIG_SOC_HAS_OMAP2_SDRC)
199void omap2_set_globals_sdrc(struct omap_globals *);
200#else 116#else
201static inline void omap2_set_globals_sdrc(struct omap_globals *omap2_globals) 117static inline void omap2xxx_restart(char mode, const char *cmd)
202{ } 118{
119}
203#endif 120#endif
204void omap2_set_globals_control(struct omap_globals *); 121
205void omap2_set_globals_prcm(struct omap_globals *); 122#ifdef CONFIG_ARCH_OMAP3
206 123void omap3xxx_restart(char mode, const char *cmd);
207void omap242x_map_io(void); 124#else
208void omap243x_map_io(void); 125static inline void omap3xxx_restart(char mode, const char *cmd)
209void omap3_map_io(void); 126{
210void am33xx_map_io(void); 127}
211void omap4_map_io(void); 128#endif
212void omap5_map_io(void); 129
213void ti81xx_map_io(void); 130#if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5)
131void omap44xx_restart(char mode, const char *cmd);
132#else
133static inline void omap44xx_restart(char mode, const char *cmd)
134{
135}
136#endif
137
138/* This gets called from mach-omap2/io.c, do not call this */
139void __init omap2_set_globals_tap(u32 class, void __iomem *tap);
140
141void __init omap242x_map_io(void);
142void __init omap243x_map_io(void);
143void __init omap3_map_io(void);
144void __init am33xx_map_io(void);
145void __init omap4_map_io(void);
146void __init omap5_map_io(void);
147void __init ti81xx_map_io(void);
148
149/* omap_barriers_init() is OMAP4 only */
214void omap_barriers_init(void); 150void omap_barriers_init(void);
215 151
216/** 152/**