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-omap3touchbook.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-omap3touchbook.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 77a0acec28a7..69d431bd05db 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -559,18 +559,12 @@ static void __init omap3_touchbook_init(void) | |||
559 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); | 559 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); |
560 | } | 560 | } |
561 | 561 | ||
562 | static void __init omap3_touchbook_map_io(void) | ||
563 | { | ||
564 | omap2_set_globals_3xxx(); | ||
565 | omap34xx_map_common_io(); | ||
566 | } | ||
567 | |||
568 | MACHINE_START(TOUCHBOOK, "OMAP3 touchbook Board") | 562 | MACHINE_START(TOUCHBOOK, "OMAP3 touchbook Board") |
569 | /* Maintainer: Gregoire Gentil - http://www.alwaysinnovating.com */ | 563 | /* Maintainer: Gregoire Gentil - http://www.alwaysinnovating.com */ |
570 | .phys_io = 0x48000000, | 564 | .phys_io = 0x48000000, |
571 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 565 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
572 | .boot_params = 0x80000100, | 566 | .boot_params = 0x80000100, |
573 | .map_io = omap3_touchbook_map_io, | 567 | .map_io = omap3_map_io, |
574 | .reserve = omap_reserve, | 568 | .reserve = omap_reserve, |
575 | .init_irq = omap3_touchbook_init_irq, | 569 | .init_irq = omap3_touchbook_init_irq, |
576 | .init_machine = omap3_touchbook_init, | 570 | .init_machine = omap3_touchbook_init, |