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-h2.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-h2.c')
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index cb7fb1aa3dca..248a5b8e2865 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -373,12 +373,6 @@ static struct i2c_board_info __initdata h2_i2c_board_info[] = { | |||
373 | }, | 373 | }, |
374 | }; | 374 | }; |
375 | 375 | ||
376 | static void __init h2_init_irq(void) | ||
377 | { | ||
378 | omap1_init_common_hw(); | ||
379 | omap1_init_irq(); | ||
380 | } | ||
381 | |||
382 | static struct omap_usb_config h2_usb_config __initdata = { | 376 | static struct omap_usb_config h2_usb_config __initdata = { |
383 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ | 377 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ |
384 | .otg = 2, | 378 | .otg = 2, |
@@ -454,17 +448,13 @@ static void __init h2_init(void) | |||
454 | h2_mmc_init(); | 448 | h2_mmc_init(); |
455 | } | 449 | } |
456 | 450 | ||
457 | static void __init h2_map_io(void) | ||
458 | { | ||
459 | omap1_map_common_io(); | ||
460 | } | ||
461 | |||
462 | MACHINE_START(OMAP_H2, "TI-H2") | 451 | MACHINE_START(OMAP_H2, "TI-H2") |
463 | /* Maintainer: Imre Deak <imre.deak@nokia.com> */ | 452 | /* Maintainer: Imre Deak <imre.deak@nokia.com> */ |
464 | .boot_params = 0x10000100, | 453 | .boot_params = 0x10000100, |
465 | .map_io = h2_map_io, | 454 | .map_io = omap16xx_map_io, |
455 | .init_early = omap1_init_early, | ||
466 | .reserve = omap_reserve, | 456 | .reserve = omap_reserve, |
467 | .init_irq = h2_init_irq, | 457 | .init_irq = omap1_init_irq, |
468 | .init_machine = h2_init, | 458 | .init_machine = h2_init, |
469 | .timer = &omap1_timer, | 459 | .timer = &omap1_timer, |
470 | MACHINE_END | 460 | MACHINE_END |