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-ldp.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-ldp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index 9bcb18248023..07e1f731ffc7 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -406,17 +406,11 @@ static void __init omap_ldp_init(void) | |||
406 | ldp_vmmc1_supply.dev = mmc[0].dev; | 406 | ldp_vmmc1_supply.dev = mmc[0].dev; |
407 | } | 407 | } |
408 | 408 | ||
409 | static void __init omap_ldp_map_io(void) | ||
410 | { | ||
411 | omap2_set_globals_3xxx(); | ||
412 | omap34xx_map_common_io(); | ||
413 | } | ||
414 | |||
415 | MACHINE_START(OMAP_LDP, "OMAP LDP board") | 409 | MACHINE_START(OMAP_LDP, "OMAP LDP board") |
416 | .phys_io = 0x48000000, | 410 | .phys_io = 0x48000000, |
417 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, | 411 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, |
418 | .boot_params = 0x80000100, | 412 | .boot_params = 0x80000100, |
419 | .map_io = omap_ldp_map_io, | 413 | .map_io = omap3_map_io, |
420 | .reserve = omap_reserve, | 414 | .reserve = omap_reserve, |
421 | .init_irq = omap_ldp_init_irq, | 415 | .init_irq = omap_ldp_init_irq, |
422 | .init_machine = omap_ldp_init, | 416 | .init_machine = omap_ldp_init, |