diff options
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r-- | arch/arm/mach-omap2/io.c | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 25d20ced03e1..73d617f0dc4a 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "clock3xxx.h" | 35 | #include "clock3xxx.h" |
36 | #include "clock44xx.h" | 36 | #include "clock44xx.h" |
37 | 37 | ||
38 | #include <plat/common.h> | 38 | #include "common.h" |
39 | #include <plat/omap-pm.h> | 39 | #include <plat/omap-pm.h> |
40 | #include "voltage.h" | 40 | #include "voltage.h" |
41 | #include "powerdomain.h" | 41 | #include "powerdomain.h" |
@@ -43,7 +43,7 @@ | |||
43 | #include "clockdomain.h" | 43 | #include "clockdomain.h" |
44 | #include <plat/omap_hwmod.h> | 44 | #include <plat/omap_hwmod.h> |
45 | #include <plat/multi.h> | 45 | #include <plat/multi.h> |
46 | #include <plat/common.h> | 46 | #include "common.h" |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * The machine specific code may provide the extra mapping besides the | 49 | * The machine specific code may provide the extra mapping besides the |
@@ -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 | ||
@@ -263,10 +280,17 @@ void __init omap34xx_map_common_io(void) | |||
263 | } | 280 | } |
264 | #endif | 281 | #endif |
265 | 282 | ||
266 | #ifdef CONFIG_SOC_OMAPTI816X | 283 | #ifdef CONFIG_SOC_OMAPTI81XX |
267 | void __init omapti816x_map_common_io(void) | 284 | void __init omapti81xx_map_common_io(void) |
285 | { | ||
286 | iotable_init(omapti81xx_io_desc, ARRAY_SIZE(omapti81xx_io_desc)); | ||
287 | } | ||
288 | #endif | ||
289 | |||
290 | #ifdef CONFIG_SOC_OMAPAM33XX | ||
291 | void __init omapam33xx_map_common_io(void) | ||
268 | { | 292 | { |
269 | iotable_init(omapti816x_io_desc, ARRAY_SIZE(omapti816x_io_desc)); | 293 | iotable_init(omapam33xx_io_desc, ARRAY_SIZE(omapam33xx_io_desc)); |
270 | } | 294 | } |
271 | #endif | 295 | #endif |
272 | 296 | ||
@@ -316,13 +340,9 @@ static int _set_hwmod_postsetup_state(struct omap_hwmod *oh, void *data) | |||
316 | return omap_hwmod_set_postsetup_state(oh, *(u8 *)data); | 340 | return omap_hwmod_set_postsetup_state(oh, *(u8 *)data); |
317 | } | 341 | } |
318 | 342 | ||
319 | /* See irq.c, omap4-common.c and entry-macro.S */ | ||
320 | void __iomem *omap_irq_base; | ||
321 | |||
322 | static void __init omap_common_init_early(void) | 343 | static void __init omap_common_init_early(void) |
323 | { | 344 | { |
324 | omap2_check_revision(); | 345 | omap2_check_revision(); |
325 | omap_ioremap_init(); | ||
326 | omap_init_consistent_dma_size(); | 346 | omap_init_consistent_dma_size(); |
327 | } | 347 | } |
328 | 348 | ||
@@ -422,9 +442,9 @@ void __init am35xx_init_early(void) | |||
422 | omap3_init_early(); | 442 | omap3_init_early(); |
423 | } | 443 | } |
424 | 444 | ||
425 | void __init ti816x_init_early(void) | 445 | void __init ti81xx_init_early(void) |
426 | { | 446 | { |
427 | omap2_set_globals_ti816x(); | 447 | omap2_set_globals_ti81xx(); |
428 | omap_common_init_early(); | 448 | omap_common_init_early(); |
429 | omap3xxx_voltagedomains_init(); | 449 | omap3xxx_voltagedomains_init(); |
430 | omap3xxx_powerdomains_init(); | 450 | omap3xxx_powerdomains_init(); |