aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-generic.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-generic.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-generic.c')
-rw-r--r--arch/arm/mach-omap1/board-generic.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/arm/mach-omap1/board-generic.c b/arch/arm/mach-omap1/board-generic.c
index 04fc356c40f..cc0cca7ee19 100644
--- a/arch/arm/mach-omap1/board-generic.c
+++ b/arch/arm/mach-omap1/board-generic.c
@@ -28,12 +28,6 @@
28#include <plat/board.h> 28#include <plat/board.h>
29#include <plat/common.h> 29#include <plat/common.h>
30 30
31static void __init omap_generic_init_irq(void)
32{
33 omap1_init_common_hw();
34 omap1_init_irq();
35}
36
37/* assume no Mini-AB port */ 31/* assume no Mini-AB port */
38 32
39#ifdef CONFIG_ARCH_OMAP15XX 33#ifdef CONFIG_ARCH_OMAP15XX
@@ -87,17 +81,13 @@ static void __init omap_generic_init(void)
87 omap_register_i2c_bus(1, 100, NULL, 0); 81 omap_register_i2c_bus(1, 100, NULL, 0);
88} 82}
89 83
90static void __init omap_generic_map_io(void)
91{
92 omap1_map_common_io();
93}
94
95MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710") 84MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710")
96 /* Maintainer: Tony Lindgren <tony@atomide.com> */ 85 /* Maintainer: Tony Lindgren <tony@atomide.com> */
97 .boot_params = 0x10000100, 86 .boot_params = 0x10000100,
98 .map_io = omap_generic_map_io, 87 .map_io = omap16xx_map_io,
88 .init_early = omap1_init_early,
99 .reserve = omap_reserve, 89 .reserve = omap_reserve,
100 .init_irq = omap_generic_init_irq, 90 .init_irq = omap1_init_irq,
101 .init_machine = omap_generic_init, 91 .init_machine = omap_generic_init,
102 .timer = &omap1_timer, 92 .timer = &omap1_timer,
103MACHINE_END 93MACHINE_END