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-devkit8000.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-devkit8000.c')
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 116425877628..8233dd551234 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -814,17 +814,11 @@ static void __init devkit8000_init(void) | |||
814 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); | 814 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); |
815 | } | 815 | } |
816 | 816 | ||
817 | static void __init devkit8000_map_io(void) | ||
818 | { | ||
819 | omap2_set_globals_3xxx(); | ||
820 | omap34xx_map_common_io(); | ||
821 | } | ||
822 | |||
823 | MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") | 817 | MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") |
824 | .phys_io = 0x48000000, | 818 | .phys_io = 0x48000000, |
825 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 819 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
826 | .boot_params = 0x80000100, | 820 | .boot_params = 0x80000100, |
827 | .map_io = devkit8000_map_io, | 821 | .map_io = omap3_map_io, |
828 | .reserve = omap_reserve, | 822 | .reserve = omap_reserve, |
829 | .init_irq = devkit8000_init_irq, | 823 | .init_irq = devkit8000_init_irq, |
830 | .init_machine = devkit8000_init, | 824 | .init_machine = devkit8000_init, |