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-am3517evm.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-am3517evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 43564249c62d..4d0f58592864 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -461,17 +461,11 @@ static void __init am3517_evm_init(void) | |||
461 | am3517_evm_ethernet_init(&am3517_evm_emac_pdata); | 461 | am3517_evm_ethernet_init(&am3517_evm_emac_pdata); |
462 | } | 462 | } |
463 | 463 | ||
464 | static void __init am3517_evm_map_io(void) | ||
465 | { | ||
466 | omap2_set_globals_3xxx(); | ||
467 | omap34xx_map_common_io(); | ||
468 | } | ||
469 | |||
470 | MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | 464 | MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") |
471 | .phys_io = 0x48000000, | 465 | .phys_io = 0x48000000, |
472 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 466 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
473 | .boot_params = 0x80000100, | 467 | .boot_params = 0x80000100, |
474 | .map_io = am3517_evm_map_io, | 468 | .map_io = omap3_map_io, |
475 | .reserve = omap_reserve, | 469 | .reserve = omap_reserve, |
476 | .init_irq = am3517_evm_init_irq, | 470 | .init_irq = am3517_evm_init_irq, |
477 | .init_machine = am3517_evm_init, | 471 | .init_machine = am3517_evm_init, |