diff options
author | Tony Lindgren <tony@atomide.com> | 2011-10-05 18:14:02 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-10-19 19:34:10 -0400 |
commit | 7b88e62f5d219a86d81bdf4388012c97dc42e8f8 (patch) | |
tree | 174143f866565578b15b3fc368b23e906a878a55 /arch/arm/plat-omap | |
parent | 3ae3e253db7385238dd9d6c67c085afa3e770a56 (diff) |
ARM: OMAP1: Use generic map_io, init_early and init_irq
This allows removing omap hacks for map_io allowing generic
map_io.
Note that in the future we can't do cpu_is_omapxxxx detection
until in init_early. This means that board-innovator.c now
assumes 15xx only, and board-generic.c assumes 16xx only.
This is best fixed later on by passing the SoC type from
device tree.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/io.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/plat/io.h b/arch/arm/plat-omap/include/plat/io.h index 6591875486d5..c0c785073141 100644 --- a/arch/arm/plat-omap/include/plat/io.h +++ b/arch/arm/plat-omap/include/plat/io.h | |||
@@ -256,8 +256,31 @@ extern void omap_writel(u32 v, u32 pa); | |||
256 | 256 | ||
257 | struct omap_sdrc_params; | 257 | struct omap_sdrc_params; |
258 | 258 | ||
259 | extern void omap1_map_common_io(void); | 259 | #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) |
260 | extern void omap1_init_common_hw(void); | 260 | void omap7xx_map_io(void); |
261 | #else | ||
262 | static inline void omap_map_io(void) | ||
263 | { | ||
264 | } | ||
265 | #endif | ||
266 | |||
267 | #ifdef CONFIG_ARCH_OMAP15XX | ||
268 | void omap15xx_map_io(void); | ||
269 | #else | ||
270 | static inline void omap15xx_map_io(void) | ||
271 | { | ||
272 | } | ||
273 | #endif | ||
274 | |||
275 | #ifdef CONFIG_ARCH_OMAP16XX | ||
276 | void omap16xx_map_io(void); | ||
277 | #else | ||
278 | static inline void omap16xx_map_io(void) | ||
279 | { | ||
280 | } | ||
281 | #endif | ||
282 | |||
283 | void omap1_init_early(void); | ||
261 | 284 | ||
262 | #ifdef CONFIG_SOC_OMAP2420 | 285 | #ifdef CONFIG_SOC_OMAP2420 |
263 | extern void omap242x_map_common_io(void); | 286 | extern void omap242x_map_common_io(void); |