diff options
Diffstat (limited to 'arch/arm/mach-omap2/common.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 112 |
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 | ||
47 | extern void omap242x_map_common_io(void); | ||
48 | #else | ||
49 | static inline void omap242x_map_common_io(void) | ||
50 | { | ||
51 | } | ||
52 | #endif | ||
53 | |||
54 | #ifdef CONFIG_SOC_OMAP2430 | ||
55 | extern void omap243x_map_common_io(void); | ||
56 | #else | ||
57 | static inline void omap243x_map_common_io(void) | ||
58 | { | ||
59 | } | ||
60 | #endif | ||
61 | |||
62 | #ifdef CONFIG_ARCH_OMAP3 | ||
63 | extern void omap34xx_map_common_io(void); | ||
64 | #else | ||
65 | static inline void omap34xx_map_common_io(void) | ||
66 | { | ||
67 | } | ||
68 | #endif | ||
69 | |||
70 | #ifdef CONFIG_SOC_TI81XX | ||
71 | extern void omapti81xx_map_common_io(void); | ||
72 | #else | ||
73 | static inline void omapti81xx_map_common_io(void) | ||
74 | { | ||
75 | } | ||
76 | #endif | ||
77 | |||
78 | #ifdef CONFIG_SOC_AM33XX | ||
79 | extern void omapam33xx_map_common_io(void); | ||
80 | #else | ||
81 | static inline void omapam33xx_map_common_io(void) | ||
82 | { | ||
83 | } | ||
84 | #endif | ||
85 | |||
86 | #ifdef CONFIG_ARCH_OMAP4 | ||
87 | extern void omap44xx_map_common_io(void); | ||
88 | #else | ||
89 | static 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) |
95 | int omap2_pm_init(void); | 47 | int 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 | ||
131 | extern void omap5_map_common_io(void); | ||
132 | #else | ||
133 | static inline void omap5_map_common_io(void) | ||
134 | { | ||
135 | } | ||
136 | #endif | ||
137 | |||
138 | extern void omap2_init_common_infrastructure(void); | 82 | extern void omap2_init_common_infrastructure(void); |
139 | 83 | ||
140 | extern struct sys_timer omap2_timer; | 84 | extern struct sys_timer omap2_timer; |
@@ -169,50 +113,18 @@ void omap4430_init_late(void); | |||
169 | int omap2_common_pm_late_init(void); | 113 | int omap2_common_pm_late_init(void); |
170 | void omap_prcm_restart(char, const char *); | 114 | void 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 | 117 | void __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. | 119 | void __init omap242x_map_io(void); |
176 | */ | 120 | void __init omap243x_map_io(void); |
177 | struct omap_globals { | 121 | void __init omap3_map_io(void); |
178 | u32 class; /* OMAP class to detect */ | 122 | void __init am33xx_map_io(void); |
179 | void __iomem *tap; /* Control module ID code */ | 123 | void __init omap4_map_io(void); |
180 | void __iomem *sdrc; /* SDRAM Controller */ | 124 | void __init omap5_map_io(void); |
181 | void __iomem *sms; /* SDRAM Memory Scheduler */ | 125 | void __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 | |||
190 | void omap2_set_globals_242x(void); | ||
191 | void omap2_set_globals_243x(void); | ||
192 | void omap2_set_globals_3xxx(void); | ||
193 | void omap2_set_globals_443x(void); | ||
194 | void omap2_set_globals_5xxx(void); | ||
195 | void omap2_set_globals_ti81xx(void); | ||
196 | void omap2_set_globals_am33xx(void); | ||
197 | |||
198 | /* These get called from omap2_set_globals_xxxx(), do not call these */ | ||
199 | void omap2_set_globals_tap(struct omap_globals *); | ||
200 | #if defined(CONFIG_SOC_HAS_OMAP2_SDRC) | ||
201 | void omap2_set_globals_sdrc(struct omap_globals *); | ||
202 | #else | ||
203 | static inline void omap2_set_globals_sdrc(struct omap_globals *omap2_globals) | ||
204 | { } | ||
205 | #endif | ||
206 | void omap2_set_globals_control(struct omap_globals *); | ||
207 | void omap2_set_globals_prcm(struct omap_globals *); | ||
208 | |||
209 | void omap242x_map_io(void); | ||
210 | void omap243x_map_io(void); | ||
211 | void omap3_map_io(void); | ||
212 | void am33xx_map_io(void); | ||
213 | void omap4_map_io(void); | ||
214 | void omap5_map_io(void); | ||
215 | void ti81xx_map_io(void); | ||
216 | void omap_barriers_init(void); | 128 | void omap_barriers_init(void); |
217 | 129 | ||
218 | /** | 130 | /** |