aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/sram.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-12-08 17:58:38 -0500
committerTony Lindgren <tony@atomide.com>2011-12-08 21:02:20 -0500
commitee62e93a3c135ae18f2fa18615ce065fe5487259 (patch)
tree859695674e471fb6e1ed877cde5f0547e4257dbd /arch/arm/plat-omap/sram.c
parent6560ee07dc946e94f7cc2cd8e3b5a5f5ee7340c1 (diff)
ARM: OMAP1: Set the omap1623 sram size to 16K
Now that we're always reprogramming the core clock we must make sure SRAM works. It seems that neither omap1621 or omap1623 has 256K of SRAM. Set the SRAM size to safe value of 16K. Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/sram.c')
-rw-r--r--arch/arm/plat-omap/sram.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 8b28664d1c62..574351902c83 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -141,11 +141,9 @@ static void __init omap_detect_sram(void)
141 omap_sram_size = 0x32000; /* 200K */ 141 omap_sram_size = 0x32000; /* 200K */
142 else if (cpu_is_omap15xx()) 142 else if (cpu_is_omap15xx())
143 omap_sram_size = 0x30000; /* 192K */ 143 omap_sram_size = 0x30000; /* 192K */
144 else if (cpu_is_omap1610() || cpu_is_omap1621() || 144 else if (cpu_is_omap1610() || cpu_is_omap1611() ||
145 cpu_is_omap1710()) 145 cpu_is_omap1621() || cpu_is_omap1710())
146 omap_sram_size = 0x4000; /* 16K */ 146 omap_sram_size = 0x4000; /* 16K */
147 else if (cpu_is_omap1611())
148 omap_sram_size = SZ_256K;
149 else { 147 else {
150 pr_err("Could not detect SRAM size\n"); 148 pr_err("Could not detect SRAM size\n");
151 omap_sram_size = 0x4000; 149 omap_sram_size = 0x4000;