aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-osk.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-10-05 18:14:02 -0400
committerTony Lindgren <tony@atomide.com>2011-10-19 19:34:10 -0400
commit7b88e62f5d219a86d81bdf4388012c97dc42e8f8 (patch)
tree174143f866565578b15b3fc368b23e906a878a55 /arch/arm/mach-omap1/board-osk.c
parent3ae3e253db7385238dd9d6c67c085afa3e770a56 (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-osk.c')
-rw-r--r--arch/arm/mach-omap1/board-osk.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c
index b08a2138077..562986e1874 100644
--- a/arch/arm/mach-omap1/board-osk.c
+++ b/arch/arm/mach-omap1/board-osk.c
@@ -279,12 +279,6 @@ static void __init osk_init_cf(void)
279 irq_set_irq_type(gpio_to_irq(62), IRQ_TYPE_EDGE_FALLING); 279 irq_set_irq_type(gpio_to_irq(62), IRQ_TYPE_EDGE_FALLING);
280} 280}
281 281
282static void __init osk_init_irq(void)
283{
284 omap1_init_common_hw();
285 omap1_init_irq();
286}
287
288static struct omap_usb_config osk_usb_config __initdata = { 282static struct omap_usb_config osk_usb_config __initdata = {
289 /* has usb host connector (A) ... for development it can also 283 /* has usb host connector (A) ... for development it can also
290 * be used, with a NONSTANDARD gender-bending cable/dongle, as 284 * be used, with a NONSTANDARD gender-bending cable/dongle, as
@@ -576,17 +570,13 @@ static void __init osk_init(void)
576 osk_mistral_init(); 570 osk_mistral_init();
577} 571}
578 572
579static void __init osk_map_io(void)
580{
581 omap1_map_common_io();
582}
583
584MACHINE_START(OMAP_OSK, "TI-OSK") 573MACHINE_START(OMAP_OSK, "TI-OSK")
585 /* Maintainer: Dirk Behme <dirk.behme@de.bosch.com> */ 574 /* Maintainer: Dirk Behme <dirk.behme@de.bosch.com> */
586 .boot_params = 0x10000100, 575 .boot_params = 0x10000100,
587 .map_io = osk_map_io, 576 .map_io = omap16xx_map_io,
577 .init_early = omap1_init_early,
588 .reserve = omap_reserve, 578 .reserve = omap_reserve,
589 .init_irq = osk_init_irq, 579 .init_irq = omap1_init_irq,
590 .init_machine = osk_init, 580 .init_machine = osk_init,
591 .timer = &omap1_timer, 581 .timer = &omap1_timer,
592MACHINE_END 582MACHINE_END