All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm: omap: sram: fix OMAP4 errata handling
@ 2012-08-29 15:24 Aaro Koskinen
  2012-08-29 15:24 ` [PATCH 2/2] arm: omap: sram: skip the first 16K on OMAP3 HS Aaro Koskinen
  2012-08-29 15:27 ` [PATCH 1/2] arm: omap: sram: fix OMAP4 errata handling Shilimkar, Santosh
  0 siblings, 2 replies; 6+ messages in thread
From: Aaro Koskinen @ 2012-08-29 15:24 UTC (permalink / raw)
  To: linux-omap, tony, santosh.shilimkar

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>
---
 arch/arm/plat-omap/sram.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 766181c..85c23db 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)
 		return;
 
 #ifdef CONFIG_OMAP4_ERRATA_I688
+	if (cpu_is_omap44xx()) {
 		omap_sram_start += PAGE_SIZE;
 		omap_sram_size -= SZ_16K;
+	}
 #endif
 	if (cpu_is_omap34xx()) {
 		/*
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-26 13:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 15:24 [PATCH 1/2] arm: omap: sram: fix OMAP4 errata handling Aaro Koskinen
2012-08-29 15:24 ` [PATCH 2/2] arm: omap: sram: skip the first 16K on OMAP3 HS Aaro Koskinen
2012-08-29 15:29   ` Shilimkar, Santosh
2012-08-30 20:40     ` Tony Lindgren
2012-09-26 13:01       ` Jarkko Nikula
2012-08-29 15:27 ` [PATCH 1/2] arm: omap: sram: fix OMAP4 errata handling Shilimkar, Santosh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.