diff options
Diffstat (limited to 'arch/arm/mach-omap2/common.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 133 |
1 files changed, 34 insertions, 99 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 426fcfcfd821..08c586451f93 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 | ||
45 | extern void omap242x_map_common_io(void); | ||
46 | #else | ||
47 | static inline void omap242x_map_common_io(void) | ||
48 | { | ||
49 | } | ||
50 | #endif | ||
51 | |||
52 | #ifdef CONFIG_SOC_OMAP2430 | ||
53 | extern void omap243x_map_common_io(void); | ||
54 | #else | ||
55 | static inline void omap243x_map_common_io(void) | ||
56 | { | ||
57 | } | ||
58 | #endif | ||
59 | |||
60 | #ifdef CONFIG_ARCH_OMAP3 | ||
61 | extern void omap34xx_map_common_io(void); | ||
62 | #else | ||
63 | static inline void omap34xx_map_common_io(void) | ||
64 | { | ||
65 | } | ||
66 | #endif | ||
67 | |||
68 | #ifdef CONFIG_SOC_TI81XX | ||
69 | extern void omapti81xx_map_common_io(void); | ||
70 | #else | ||
71 | static inline void omapti81xx_map_common_io(void) | ||
72 | { | ||
73 | } | ||
74 | #endif | ||
75 | |||
76 | #ifdef CONFIG_SOC_AM33XX | ||
77 | extern void omapam33xx_map_common_io(void); | ||
78 | #else | ||
79 | static inline void omapam33xx_map_common_io(void) | ||
80 | { | ||
81 | } | ||
82 | #endif | ||
83 | |||
84 | #ifdef CONFIG_ARCH_OMAP4 | ||
85 | extern void omap44xx_map_common_io(void); | ||
86 | #else | ||
87 | static 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) |
93 | int omap2_pm_init(void); | 45 | int omap2_pm_init(void); |
94 | #else | 46 | #else |
@@ -125,14 +77,6 @@ static inline int omap_mux_late_init(void) | |||
125 | } | 77 | } |
126 | #endif | 78 | #endif |
127 | 79 | ||
128 | #ifdef CONFIG_SOC_OMAP5 | ||
129 | extern void omap5_map_common_io(void); | ||
130 | #else | ||
131 | static inline void omap5_map_common_io(void) | ||
132 | { | ||
133 | } | ||
134 | #endif | ||
135 | |||
136 | extern void omap2_init_common_infrastructure(void); | 80 | extern void omap2_init_common_infrastructure(void); |
137 | 81 | ||
138 | extern struct sys_timer omap2_timer; | 82 | extern struct sys_timer omap2_timer; |
@@ -165,52 +109,43 @@ void am35xx_init_late(void); | |||
165 | void ti81xx_init_late(void); | 109 | void ti81xx_init_late(void); |
166 | void omap4430_init_late(void); | 110 | void omap4430_init_late(void); |
167 | int omap2_common_pm_late_init(void); | 111 | int omap2_common_pm_late_init(void); |
168 | void omap_prcm_restart(char, const char *); | ||
169 | 112 | ||
170 | /* | 113 | #if defined(CONFIG_SOC_OMAP2420) || defined(CONFIG_SOC_OMAP2430) |
171 | * IO bases for various OMAP processors | 114 | void omap2xxx_restart(char mode, const char *cmd); |
172 | * Except the tap base, rest all the io bases | ||
173 | * listed are physical addresses. | ||
174 | */ | ||
175 | struct 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 | |||
188 | void omap2_set_globals_242x(void); | ||
189 | void omap2_set_globals_243x(void); | ||
190 | void omap2_set_globals_3xxx(void); | ||
191 | void omap2_set_globals_443x(void); | ||
192 | void omap2_set_globals_5xxx(void); | ||
193 | void omap2_set_globals_ti81xx(void); | ||
194 | void omap2_set_globals_am33xx(void); | ||
195 | |||
196 | /* These get called from omap2_set_globals_xxxx(), do not call these */ | ||
197 | void omap2_set_globals_tap(struct omap_globals *); | ||
198 | #if defined(CONFIG_SOC_HAS_OMAP2_SDRC) | ||
199 | void omap2_set_globals_sdrc(struct omap_globals *); | ||
200 | #else | 115 | #else |
201 | static inline void omap2_set_globals_sdrc(struct omap_globals *omap2_globals) | 116 | static inline void omap2xxx_restart(char mode, const char *cmd) |
202 | { } | 117 | { |
118 | } | ||
203 | #endif | 119 | #endif |
204 | void omap2_set_globals_control(struct omap_globals *); | 120 | |
205 | void omap2_set_globals_prcm(struct omap_globals *); | 121 | #ifdef CONFIG_ARCH_OMAP3 |
206 | 122 | void omap3xxx_restart(char mode, const char *cmd); | |
207 | void omap242x_map_io(void); | 123 | #else |
208 | void omap243x_map_io(void); | 124 | static inline void omap3xxx_restart(char mode, const char *cmd) |
209 | void omap3_map_io(void); | 125 | { |
210 | void am33xx_map_io(void); | 126 | } |
211 | void omap4_map_io(void); | 127 | #endif |
212 | void omap5_map_io(void); | 128 | |
213 | void ti81xx_map_io(void); | 129 | #if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) |
130 | void omap44xx_restart(char mode, const char *cmd); | ||
131 | #else | ||
132 | static inline void omap44xx_restart(char mode, const char *cmd) | ||
133 | { | ||
134 | } | ||
135 | #endif | ||
136 | |||
137 | /* This gets called from mach-omap2/io.c, do not call this */ | ||
138 | void __init omap2_set_globals_tap(u32 class, void __iomem *tap); | ||
139 | |||
140 | void __init omap242x_map_io(void); | ||
141 | void __init omap243x_map_io(void); | ||
142 | void __init omap3_map_io(void); | ||
143 | void __init am33xx_map_io(void); | ||
144 | void __init omap4_map_io(void); | ||
145 | void __init omap5_map_io(void); | ||
146 | void __init ti81xx_map_io(void); | ||
147 | |||
148 | /* omap_barriers_init() is OMAP4 only */ | ||
214 | void omap_barriers_init(void); | 149 | void omap_barriers_init(void); |
215 | 150 | ||
216 | /** | 151 | /** |