Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -4
+2 -4
arch/arm/plat-omap/sram.c
··· 141 141 omap_sram_size = 0x32000; /* 200K */ 142 142 else if (cpu_is_omap15xx()) 143 143 omap_sram_size = 0x30000; /* 192K */ 144 - else if (cpu_is_omap1610() || cpu_is_omap1621() || 145 - cpu_is_omap1710()) 144 + else if (cpu_is_omap1610() || cpu_is_omap1611() || 145 + cpu_is_omap1621() || cpu_is_omap1710()) 146 146 omap_sram_size = 0x4000; /* 16K */ 147 - else if (cpu_is_omap1611()) 148 - omap_sram_size = SZ_256K; 149 147 else { 150 148 pr_err("Could not detect SRAM size\n"); 151 149 omap_sram_size = 0x4000;