aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorMike Rapoport <mike@compulab.co.il>2010-08-04 07:43:18 -0400
committerTony Lindgren <tony@atomide.com>2010-08-04 07:43:18 -0400
commit869fef41547db95df8523bf67845a21313709428 (patch)
tree5d12824045f9ac8b94a6e2aabfdb7b8693bdf051 /arch/arm/plat-omap
parentc573bcf96a427923d09de0b247691165d9a96023 (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/plat-omap')
-rw-r--r--arch/arm/plat-omap/common.c6
-rw-r--r--arch/arm/plat-omap/include/plat/common.h2
2 files changed, 8 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)
324{ 324{
325 __omap2_set_globals(&omap3_globals); 325 __omap2_set_globals(&omap3_globals);
326} 326}
327
328void __init omap3_map_io(void)
329{
330 omap2_set_globals_3xxx();
331 omap34xx_map_common_io();
332}
327#endif 333#endif
328 334
329#if defined(CONFIG_ARCH_OMAP4) 335#if defined(CONFIG_ARCH_OMAP4)
diff --git a/arch/arm/plat-omap/include/plat/common.h b/arch/arm/plat-omap/include/plat/common.h
index 962aaebf59d4..e9cf3da18a09 100644
--- a/arch/arm/plat-omap/include/plat/common.h
+++ b/arch/arm/plat-omap/include/plat/common.h
@@ -68,6 +68,8 @@ void omap2_set_globals_control(struct omap_globals *);
68void omap2_set_globals_prcm(struct omap_globals *); 68void omap2_set_globals_prcm(struct omap_globals *);
69void omap2_set_globals_uart(struct omap_globals *); 69void omap2_set_globals_uart(struct omap_globals *);
70 70
71void omap3_map_io(void);
72
71/** 73/**
72 * omap_test_timeout - busy-loop, testing a condition 74 * omap_test_timeout - busy-loop, testing a condition
73 * @cond: condition to test until it evaluates to true 75 * @cond: condition to test until it evaluates to true