diff options
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r-- | arch/arm/mach-omap2/io.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index cb6c11cd8df9..8976be90c8e8 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -233,6 +233,35 @@ static struct map_desc omap44xx_io_desc[] __initdata = { | |||
233 | }; | 233 | }; |
234 | #endif | 234 | #endif |
235 | 235 | ||
236 | #ifdef CONFIG_SOC_OMAP5 | ||
237 | static struct map_desc omap54xx_io_desc[] __initdata = { | ||
238 | { | ||
239 | .virtual = L3_54XX_VIRT, | ||
240 | .pfn = __phys_to_pfn(L3_54XX_PHYS), | ||
241 | .length = L3_54XX_SIZE, | ||
242 | .type = MT_DEVICE, | ||
243 | }, | ||
244 | { | ||
245 | .virtual = L4_54XX_VIRT, | ||
246 | .pfn = __phys_to_pfn(L4_54XX_PHYS), | ||
247 | .length = L4_54XX_SIZE, | ||
248 | .type = MT_DEVICE, | ||
249 | }, | ||
250 | { | ||
251 | .virtual = L4_WK_54XX_VIRT, | ||
252 | .pfn = __phys_to_pfn(L4_WK_54XX_PHYS), | ||
253 | .length = L4_WK_54XX_SIZE, | ||
254 | .type = MT_DEVICE, | ||
255 | }, | ||
256 | { | ||
257 | .virtual = L4_PER_54XX_VIRT, | ||
258 | .pfn = __phys_to_pfn(L4_PER_54XX_PHYS), | ||
259 | .length = L4_PER_54XX_SIZE, | ||
260 | .type = MT_DEVICE, | ||
261 | }, | ||
262 | }; | ||
263 | #endif | ||
264 | |||
236 | #ifdef CONFIG_SOC_OMAP2420 | 265 | #ifdef CONFIG_SOC_OMAP2420 |
237 | void __init omap242x_map_common_io(void) | 266 | void __init omap242x_map_common_io(void) |
238 | { | 267 | { |
@@ -278,6 +307,12 @@ void __init omap44xx_map_common_io(void) | |||
278 | } | 307 | } |
279 | #endif | 308 | #endif |
280 | 309 | ||
310 | #ifdef CONFIG_SOC_OMAP5 | ||
311 | void __init omap5_map_common_io(void) | ||
312 | { | ||
313 | iotable_init(omap54xx_io_desc, ARRAY_SIZE(omap54xx_io_desc)); | ||
314 | } | ||
315 | #endif | ||
281 | /* | 316 | /* |
282 | * omap2_init_reprogram_sdrc - reprogram SDRC timing parameters | 317 | * omap2_init_reprogram_sdrc - reprogram SDRC timing parameters |
283 | * | 318 | * |
@@ -513,6 +548,15 @@ void __init omap4430_init_late(void) | |||
513 | } | 548 | } |
514 | #endif | 549 | #endif |
515 | 550 | ||
551 | #ifdef CONFIG_SOC_OMAP5 | ||
552 | void __init omap5_init_early(void) | ||
553 | { | ||
554 | omap2_set_globals_5xxx(); | ||
555 | omap5xxx_check_revision(); | ||
556 | omap_common_init_early(); | ||
557 | } | ||
558 | #endif | ||
559 | |||
516 | void __init omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, | 560 | void __init omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, |
517 | struct omap_sdrc_params *sdrc_cs1) | 561 | struct omap_sdrc_params *sdrc_cs1) |
518 | { | 562 | { |