aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2011-12-13 13:46:43 -0500
committerTony Lindgren <tony@atomide.com>2011-12-13 13:46:43 -0500
commit1e6cb146c39cdef1ffc340c13637fce2ba5575be (patch)
tree405d04dd8310f3445d83f47fda1b7bcda47daaa8 /arch/arm/mach-omap2/io.c
parent995411953604e3c973328dda8c7807e45aca0f2b (diff)
ARM: OMAP: am33xx: Update common OMAP machine specific sources
This patch updates the common machine specific source files for support for AM33XX/AM335x with cpu type, macros for identification of AM33XX/AM335X device. Signed-off-by: Afzal Mohammed <afzal@ti.com> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Tested-by: Kevin Hilman <khilman@ti.com> [tony@atomide.com: updated for map_io and common.h changes, dropped CK_AM33XX] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 3f565dd2ea8d..088d2ba60eff 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -183,7 +183,24 @@ static struct map_desc omapti816x_io_desc[] __initdata = {
183 .pfn = __phys_to_pfn(L4_34XX_PHYS), 183 .pfn = __phys_to_pfn(L4_34XX_PHYS),
184 .length = L4_34XX_SIZE, 184 .length = L4_34XX_SIZE,
185 .type = MT_DEVICE 185 .type = MT_DEVICE
186 }
187};
188#endif
189
190#ifdef CONFIG_SOC_OMAPAM33XX
191static struct map_desc omapam33xx_io_desc[] __initdata = {
192 {
193 .virtual = L4_34XX_VIRT,
194 .pfn = __phys_to_pfn(L4_34XX_PHYS),
195 .length = L4_34XX_SIZE,
196 .type = MT_DEVICE
186 }, 197 },
198 {
199 .virtual = L4_WK_AM33XX_VIRT,
200 .pfn = __phys_to_pfn(L4_WK_AM33XX_PHYS),
201 .length = L4_WK_AM33XX_SIZE,
202 .type = MT_DEVICE
203 }
187}; 204};
188#endif 205#endif
189 206
@@ -270,6 +287,13 @@ void __init omapti816x_map_common_io(void)
270} 287}
271#endif 288#endif
272 289
290#ifdef CONFIG_SOC_OMAPAM33XX
291void __init omapam33xx_map_common_io(void)
292{
293 iotable_init(omapam33xx_io_desc, ARRAY_SIZE(omapam33xx_io_desc));
294}
295#endif
296
273#ifdef CONFIG_ARCH_OMAP4 297#ifdef CONFIG_ARCH_OMAP4
274void __init omap44xx_map_common_io(void) 298void __init omap44xx_map_common_io(void)
275{ 299{