diff options
author | Mike Rapoport <mike@compulab.co.il> | 2010-08-04 07:43:18 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-08-04 07:43:18 -0400 |
commit | 869fef41547db95df8523bf67845a21313709428 (patch) | |
tree | 5d12824045f9ac8b94a6e2aabfdb7b8693bdf051 /arch/arm/mach-omap2/board-zoom2.c | |
parent | c573bcf96a427923d09de0b247691165d9a96023 (diff) |
omap3: introduce omap3_map_io
Most OMAP3-based boards use exactly the same code for .map_io method in
the machine_desc structure.
This patch introduces omap3_map_io and updates board-* files to use it
as .map_io method.
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom2.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index 3d2deb453727..161f72965a62 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -84,17 +84,11 @@ static void __init omap_zoom2_init(void) | |||
84 | zoom_debugboard_init(); | 84 | zoom_debugboard_init(); |
85 | } | 85 | } |
86 | 86 | ||
87 | static void __init omap_zoom2_map_io(void) | ||
88 | { | ||
89 | omap2_set_globals_3xxx(); | ||
90 | omap34xx_map_common_io(); | ||
91 | } | ||
92 | |||
93 | MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") | 87 | MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") |
94 | .phys_io = ZOOM_UART_BASE, | 88 | .phys_io = ZOOM_UART_BASE, |
95 | .io_pg_offst = (ZOOM_UART_VIRT >> 18) & 0xfffc, | 89 | .io_pg_offst = (ZOOM_UART_VIRT >> 18) & 0xfffc, |
96 | .boot_params = 0x80000100, | 90 | .boot_params = 0x80000100, |
97 | .map_io = omap_zoom2_map_io, | 91 | .map_io = omap3_map_io, |
98 | .reserve = omap_reserve, | 92 | .reserve = omap_reserve, |
99 | .init_irq = omap_zoom2_init_irq, | 93 | .init_irq = omap_zoom2_init_irq, |
100 | .init_machine = omap_zoom2_init, | 94 | .init_machine = omap_zoom2_init, |