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-htcherald.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-htcherald.c')
-rw-r--r-- | arch/arm/mach-omap1/board-htcherald.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c index 36e06ea7ec65..67798dfc4f8d 100644 --- a/arch/arm/mach-omap1/board-htcherald.c +++ b/arch/arm/mach-omap1/board-htcherald.c | |||
@@ -500,7 +500,7 @@ static void __init htcherald_lcd_init(void) | |||
500 | 500 | ||
501 | static void __init htcherald_map_io(void) | 501 | static void __init htcherald_map_io(void) |
502 | { | 502 | { |
503 | omap1_map_common_io(); | 503 | omap7xx_map_io(); |
504 | 504 | ||
505 | /* | 505 | /* |
506 | * The LCD panel must be disabled and DMA turned off here, as doing | 506 | * The LCD panel must be disabled and DMA turned off here, as doing |
@@ -601,20 +601,14 @@ static void __init htcherald_init(void) | |||
601 | #endif | 601 | #endif |
602 | } | 602 | } |
603 | 603 | ||
604 | static void __init htcherald_init_irq(void) | ||
605 | { | ||
606 | printk(KERN_INFO "htcherald_init_irq.\n"); | ||
607 | omap1_init_common_hw(); | ||
608 | omap1_init_irq(); | ||
609 | } | ||
610 | |||
611 | MACHINE_START(HERALD, "HTC Herald") | 604 | MACHINE_START(HERALD, "HTC Herald") |
612 | /* Maintainer: Cory Maccarrone <darkstar6262@gmail.com> */ | 605 | /* Maintainer: Cory Maccarrone <darkstar6262@gmail.com> */ |
613 | /* Maintainer: wing-linux.sourceforge.net */ | 606 | /* Maintainer: wing-linux.sourceforge.net */ |
614 | .boot_params = 0x10000100, | 607 | .boot_params = 0x10000100, |
615 | .map_io = htcherald_map_io, | 608 | .map_io = htcherald_map_io, |
609 | .init_early = omap1_init_early, | ||
616 | .reserve = omap_reserve, | 610 | .reserve = omap_reserve, |
617 | .init_irq = htcherald_init_irq, | 611 | .init_irq = omap1_init_irq, |
618 | .init_machine = htcherald_init, | 612 | .init_machine = htcherald_init, |
619 | .timer = &omap1_timer, | 613 | .timer = &omap1_timer, |
620 | MACHINE_END | 614 | MACHINE_END |