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/mach-omap1/board-ams-delta.c | |
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/mach-omap1/board-ams-delta.c')
-rw-r--r-- | arch/arm/mach-omap1/board-ams-delta.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 312ea6b0409d..44277370806e 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -135,12 +135,6 @@ void ams_delta_latch2_write(u16 mask, u16 value) | |||
135 | *(volatile __u16 *) AMS_DELTA_LATCH2_VIRT = ams_delta_latch2_reg; | 135 | *(volatile __u16 *) AMS_DELTA_LATCH2_VIRT = ams_delta_latch2_reg; |
136 | } | 136 | } |
137 | 137 | ||
138 | static void __init ams_delta_init_irq(void) | ||
139 | { | ||
140 | omap1_init_common_hw(); | ||
141 | omap1_init_irq(); | ||
142 | } | ||
143 | |||
144 | static struct map_desc ams_delta_io_desc[] __initdata = { | 138 | static struct map_desc ams_delta_io_desc[] __initdata = { |
145 | /* AMS_DELTA_LATCH1 */ | 139 | /* AMS_DELTA_LATCH1 */ |
146 | { | 140 | { |
@@ -379,17 +373,13 @@ static int __init ams_delta_modem_init(void) | |||
379 | } | 373 | } |
380 | arch_initcall(ams_delta_modem_init); | 374 | arch_initcall(ams_delta_modem_init); |
381 | 375 | ||
382 | static void __init ams_delta_map_io(void) | ||
383 | { | ||
384 | omap1_map_common_io(); | ||
385 | } | ||
386 | |||
387 | MACHINE_START(AMS_DELTA, "Amstrad E3 (Delta)") | 376 | MACHINE_START(AMS_DELTA, "Amstrad E3 (Delta)") |
388 | /* Maintainer: Jonathan McDowell <noodles@earth.li> */ | 377 | /* Maintainer: Jonathan McDowell <noodles@earth.li> */ |
389 | .boot_params = 0x10000100, | 378 | .boot_params = 0x10000100, |
390 | .map_io = ams_delta_map_io, | 379 | .map_io = omap15xx_map_io, |
380 | .init_early = omap1_init_early, | ||
391 | .reserve = omap_reserve, | 381 | .reserve = omap_reserve, |
392 | .init_irq = ams_delta_init_irq, | 382 | .init_irq = omap1_init_irq, |
393 | .init_machine = ams_delta_init, | 383 | .init_machine = ams_delta_init, |
394 | .timer = &omap1_timer, | 384 | .timer = &omap1_timer, |
395 | MACHINE_END | 385 | MACHINE_END |