diff options
Diffstat (limited to 'arch/arm/plat-omap/sram.c')
-rw-r--r-- | arch/arm/plat-omap/sram.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 4243bdcc87bc..596f2224e15a 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -86,7 +86,7 @@ static int is_sram_locked(void) | |||
86 | __raw_writel(0xCFDE, OMAP24XX_VA_READPERM0); /* all i-read */ | 86 | __raw_writel(0xCFDE, OMAP24XX_VA_READPERM0); /* all i-read */ |
87 | __raw_writel(0xCFDE, OMAP24XX_VA_WRITEPERM0); /* all i-write */ | 87 | __raw_writel(0xCFDE, OMAP24XX_VA_WRITEPERM0); /* all i-write */ |
88 | } | 88 | } |
89 | if (cpu_is_omap34xx()) { | 89 | if (cpu_is_omap34xx() && !cpu_is_am33xx()) { |
90 | __raw_writel(0xFFFF, OMAP34XX_VA_REQINFOPERM0); /* all q-vects */ | 90 | __raw_writel(0xFFFF, OMAP34XX_VA_REQINFOPERM0); /* all q-vects */ |
91 | __raw_writel(0xFFFF, OMAP34XX_VA_READPERM0); /* all i-read */ | 91 | __raw_writel(0xFFFF, OMAP34XX_VA_READPERM0); /* all i-read */ |
92 | __raw_writel(0xFFFF, OMAP34XX_VA_WRITEPERM0); /* all i-write */ | 92 | __raw_writel(0xFFFF, OMAP34XX_VA_WRITEPERM0); /* all i-write */ |
@@ -124,7 +124,10 @@ static void __init omap_detect_sram(void) | |||
124 | omap_sram_size = 0x800; /* 2K */ | 124 | omap_sram_size = 0x800; /* 2K */ |
125 | } | 125 | } |
126 | } else { | 126 | } else { |
127 | if (cpu_is_omap34xx()) { | 127 | if (cpu_is_am33xx()) { |
128 | omap_sram_start = AM33XX_SRAM_PA; | ||
129 | omap_sram_size = 0x10000; /* 64K */ | ||
130 | } else if (cpu_is_omap34xx()) { | ||
128 | omap_sram_start = OMAP3_SRAM_PA; | 131 | omap_sram_start = OMAP3_SRAM_PA; |
129 | omap_sram_size = 0x10000; /* 64K */ | 132 | omap_sram_size = 0x10000; /* 64K */ |
130 | } else if (cpu_is_omap44xx()) { | 133 | } else if (cpu_is_omap44xx()) { |
@@ -368,6 +371,11 @@ static inline int omap34xx_sram_init(void) | |||
368 | return 0; | 371 | return 0; |
369 | } | 372 | } |
370 | 373 | ||
374 | static inline int am33xx_sram_init(void) | ||
375 | { | ||
376 | return 0; | ||
377 | } | ||
378 | |||
371 | int __init omap_sram_init(void) | 379 | int __init omap_sram_init(void) |
372 | { | 380 | { |
373 | omap_detect_sram(); | 381 | omap_detect_sram(); |
@@ -379,6 +387,8 @@ int __init omap_sram_init(void) | |||
379 | omap242x_sram_init(); | 387 | omap242x_sram_init(); |
380 | else if (cpu_is_omap2430()) | 388 | else if (cpu_is_omap2430()) |
381 | omap243x_sram_init(); | 389 | omap243x_sram_init(); |
390 | else if (cpu_is_am33xx()) | ||
391 | am33xx_sram_init(); | ||
382 | else if (cpu_is_omap34xx()) | 392 | else if (cpu_is_omap34xx()) |
383 | omap34xx_sram_init(); | 393 | omap34xx_sram_init(); |
384 | 394 | ||