aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2012-08-29 11:24:30 -0400
committerTony Lindgren <tony@atomide.com>2012-08-30 16:37:11 -0400
commit528c28f5c1cd435c45515b323919205c95342331 (patch)
tree63f35a50cd752062979581d65b34123d90430aae /arch
parent45caae74d238ef6583e9402cb8c550cc0b0f7dbd (diff)
ARM: OMAP: sram: fix OMAP4 errata handling
OMAP4-specific code should be executed only if we are running on OMAP4. Otherwise it may break multi-OMAP kernels. Found by reading the code. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-omap/sram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 766181cb5c95..85c23db25034 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -175,8 +175,10 @@ static void __init omap_map_sram(void)
175 return; 175 return;
176 176
177#ifdef CONFIG_OMAP4_ERRATA_I688 177#ifdef CONFIG_OMAP4_ERRATA_I688
178 if (cpu_is_omap44xx()) {
178 omap_sram_start += PAGE_SIZE; 179 omap_sram_start += PAGE_SIZE;
179 omap_sram_size -= SZ_16K; 180 omap_sram_size -= SZ_16K;
181 }
180#endif 182#endif
181 if (cpu_is_omap34xx()) { 183 if (cpu_is_omap34xx()) {
182 /* 184 /*