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