diff options
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r-- | arch/arm/mach-omap2/io.c | 47 |
1 files changed, 40 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 3f565dd2ea8d..3f174d51f67f 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -176,14 +176,31 @@ static struct map_desc omap34xx_io_desc[] __initdata = { | |||
176 | }; | 176 | }; |
177 | #endif | 177 | #endif |
178 | 178 | ||
179 | #ifdef CONFIG_SOC_OMAPTI816X | 179 | #ifdef CONFIG_SOC_OMAPTI81XX |
180 | static struct map_desc omapti816x_io_desc[] __initdata = { | 180 | static struct map_desc omapti81xx_io_desc[] __initdata = { |
181 | { | ||
182 | .virtual = L4_34XX_VIRT, | ||
183 | .pfn = __phys_to_pfn(L4_34XX_PHYS), | ||
184 | .length = L4_34XX_SIZE, | ||
185 | .type = MT_DEVICE | ||
186 | } | ||
187 | }; | ||
188 | #endif | ||
189 | |||
190 | #ifdef CONFIG_SOC_OMAPAM33XX | ||
191 | static struct map_desc omapam33xx_io_desc[] __initdata = { | ||
181 | { | 192 | { |
182 | .virtual = L4_34XX_VIRT, | 193 | .virtual = L4_34XX_VIRT, |
183 | .pfn = __phys_to_pfn(L4_34XX_PHYS), | 194 | .pfn = __phys_to_pfn(L4_34XX_PHYS), |
184 | .length = L4_34XX_SIZE, | 195 | .length = L4_34XX_SIZE, |
185 | .type = MT_DEVICE | 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 | ||
@@ -237,6 +254,15 @@ static struct map_desc omap44xx_io_desc[] __initdata = { | |||
237 | .length = L4_EMU_44XX_SIZE, | 254 | .length = L4_EMU_44XX_SIZE, |
238 | .type = MT_DEVICE, | 255 | .type = MT_DEVICE, |
239 | }, | 256 | }, |
257 | #ifdef CONFIG_OMAP4_ERRATA_I688 | ||
258 | { | ||
259 | .virtual = OMAP4_SRAM_VA, | ||
260 | .pfn = __phys_to_pfn(OMAP4_SRAM_PA), | ||
261 | .length = PAGE_SIZE, | ||
262 | .type = MT_MEMORY_SO, | ||
263 | }, | ||
264 | #endif | ||
265 | |||
240 | }; | 266 | }; |
241 | #endif | 267 | #endif |
242 | 268 | ||
@@ -263,10 +289,17 @@ void __init omap34xx_map_common_io(void) | |||
263 | } | 289 | } |
264 | #endif | 290 | #endif |
265 | 291 | ||
266 | #ifdef CONFIG_SOC_OMAPTI816X | 292 | #ifdef CONFIG_SOC_OMAPTI81XX |
267 | void __init omapti816x_map_common_io(void) | 293 | void __init omapti81xx_map_common_io(void) |
294 | { | ||
295 | iotable_init(omapti81xx_io_desc, ARRAY_SIZE(omapti81xx_io_desc)); | ||
296 | } | ||
297 | #endif | ||
298 | |||
299 | #ifdef CONFIG_SOC_OMAPAM33XX | ||
300 | void __init omapam33xx_map_common_io(void) | ||
268 | { | 301 | { |
269 | iotable_init(omapti816x_io_desc, ARRAY_SIZE(omapti816x_io_desc)); | 302 | iotable_init(omapam33xx_io_desc, ARRAY_SIZE(omapam33xx_io_desc)); |
270 | } | 303 | } |
271 | #endif | 304 | #endif |
272 | 305 | ||
@@ -418,9 +451,9 @@ void __init am35xx_init_early(void) | |||
418 | omap3_init_early(); | 451 | omap3_init_early(); |
419 | } | 452 | } |
420 | 453 | ||
421 | void __init ti816x_init_early(void) | 454 | void __init ti81xx_init_early(void) |
422 | { | 455 | { |
423 | omap2_set_globals_ti816x(); | 456 | omap2_set_globals_ti81xx(); |
424 | omap_common_init_early(); | 457 | omap_common_init_early(); |
425 | omap3xxx_voltagedomains_init(); | 458 | omap3xxx_voltagedomains_init(); |
426 | omap3xxx_powerdomains_init(); | 459 | omap3xxx_powerdomains_init(); |