public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: tegra: Use the IRAM for the early stack
@ 2013-12-09 17:06 Alban Bedel
  2013-12-09 17:09 ` Stephen Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Alban Bedel @ 2013-12-09 17:06 UTC (permalink / raw)
  To: u-boot

Unlike many other platforms the tegra platform has the luxury of
already having the SDRAM running during the early init, and it is used
for the early stack. However the memory test of the POST subsystem is
expecting the SDRAM to be unused, and on tegra platforms the test fail
to run as it destroy the stack.

To fix the problem simply use the IRAM for the initial stack.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
---
 include/configs/tegra-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 522cd41..340f5aa 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -124,7 +124,7 @@
 
 #define CONFIG_SYS_BOOTMAPSZ	(256 << 20)	/* 256M */
 
-#define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_STACKBASE
+#define CONFIG_SYS_INIT_RAM_ADDR	EARLY_CPU_STACK
 #define CONFIG_SYS_INIT_RAM_SIZE	CONFIG_SYS_MALLOC_LEN
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
 						CONFIG_SYS_INIT_RAM_SIZE - \
-- 
1.8.5

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

end of thread, other threads:[~2013-12-09 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-09 17:06 [U-Boot] [PATCH] ARM: tegra: Use the IRAM for the early stack Alban Bedel
2013-12-09 17:09 ` Stephen Warren
2013-12-09 18:09   ` Alban Bedel
2013-12-09 18:16     ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox