summaryrefslogtreecommitdiff
path: root/include/configs/socfpga_soc64_common.h
diff options
context:
space:
mode:
authorChee Hong Ang <chee.hong.ang@intel.com>2020-12-24 18:21:09 +0800
committerLey Foon Tan <ley.foon.tan@intel.com>2021-01-15 17:48:38 +0800
commit482bc18d4a6455f4a350a1cd0f899abed62b64da (patch)
tree771fd9bf89064734d8761a9e9f203b5c7b07a719 /include/configs/socfpga_soc64_common.h
parent3b07cec93a82510b6720e685a9d7b1d520348e17 (diff)
arm: socfpga: soc64: SSBL shall not setup stack on OCRAM
Since SSBL is running in DRAM, it shall setup the stack in DRAM instead of OCRAM which is occupied by SPL and handoff data. Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
Diffstat (limited to 'include/configs/socfpga_soc64_common.h')
-rw-r--r--include/configs/socfpga_soc64_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h
index 990f879b07..fdcd7d3e9a 100644
--- a/include/configs/socfpga_soc64_common.h
+++ b/include/configs/socfpga_soc64_common.h
@@ -40,9 +40,14 @@
*/
#define CONFIG_SYS_INIT_RAM_ADDR 0xFFE00000
#define CONFIG_SYS_INIT_RAM_SIZE 0x40000
+#ifdef CONFIG_SPL_BUILD
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR \
+ CONFIG_SYS_INIT_RAM_SIZE \
- S10_HANDOFF_SIZE)
+#else
+#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE \
+ + 0x100000)
+#endif
#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_INIT_SP_ADDR)
#define CONFIG_SYS_MALLOC_LEN (5 * 1024 * 1024)