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-cm-t35.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-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 6ce30b37cda2..b910f72f43cc 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -708,12 +708,6 @@ static void __init cm_t35_init_irq(void) | |||
708 | omap_gpio_init(); | 708 | omap_gpio_init(); |
709 | } | 709 | } |
710 | 710 | ||
711 | static void __init cm_t35_map_io(void) | ||
712 | { | ||
713 | omap2_set_globals_3xxx(); | ||
714 | omap34xx_map_common_io(); | ||
715 | } | ||
716 | |||
717 | static struct omap_board_mux board_mux[] __initdata = { | 711 | static struct omap_board_mux board_mux[] __initdata = { |
718 | /* nCS and IRQ for CM-T35 ethernet */ | 712 | /* nCS and IRQ for CM-T35 ethernet */ |
719 | OMAP3_MUX(GPMC_NCS5, OMAP_MUX_MODE0), | 713 | OMAP3_MUX(GPMC_NCS5, OMAP_MUX_MODE0), |
@@ -836,7 +830,7 @@ MACHINE_START(CM_T35, "Compulab CM-T35") | |||
836 | .phys_io = 0x48000000, | 830 | .phys_io = 0x48000000, |
837 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 831 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
838 | .boot_params = 0x80000100, | 832 | .boot_params = 0x80000100, |
839 | .map_io = cm_t35_map_io, | 833 | .map_io = omap3_map_io, |
840 | .reserve = omap_reserve, | 834 | .reserve = omap_reserve, |
841 | .init_irq = cm_t35_init_irq, | 835 | .init_irq = cm_t35_init_irq, |
842 | .init_machine = cm_t35_init, | 836 | .init_machine = cm_t35_init, |