aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/common.c
diff options
context:
space:
mode:
authorMike Rapoport <mike@compulab.co.il>2010-08-04 14:43:18 +0300
committerTony Lindgren <tony@atomide.com>2010-08-04 14:43:18 +0300
commit869fef41547db95df8523bf67845a21313709428 (patch)
tree5d12824045f9ac8b94a6e2aabfdb7b8693bdf051 /arch/arm/plat-omap/common.c
parentomap3: Unify omap2_set_globals_3[43,6x]x functions (diff)
downloadlinux-dev-869fef41547db95df8523bf67845a21313709428.tar.xz
linux-dev-869fef41547db95df8523bf67845a21313709428.zip
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/plat-omap/common.c')
-rw-r--r--arch/arm/plat-omap/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
index 8932350abfd2..3008e7104487 100644
--- a/arch/arm/plat-omap/common.c
+++ b/arch/arm/plat-omap/common.c
@@ -324,6 +324,12 @@ void __init omap2_set_globals_3xxx(void)
{
__omap2_set_globals(&omap3_globals);
}
+
+void __init omap3_map_io(void)
+{
+ omap2_set_globals_3xxx();
+ omap34xx_map_common_io();
+}
#endif
#if defined(CONFIG_ARCH_OMAP4)