aboutsummaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorLokesh Vutla2021-05-06 16:44:53 +0530
committerLokesh Vutla2021-05-12 16:32:44 +0530
commitaad1614468e900771051701f46b0f93656dda698 (patch)
tree4f95a9f845e37c45a329dd99e6b62aa6f27d8ab1 /include/configs
parentb5425a96764e423c99dcd50e4f28a1834a5d4803 (diff)
include: configs: am64x: Avoid overlap of BSS and stack area
Avoid R5 SPL stack writing into ROM index table. Re-use the same space for storing EEPROM data. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/am64x_evm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/am64x_evm.h b/include/configs/am64x_evm.h
index 99c779b5849..5d756b409de 100644
--- a/include/configs/am64x_evm.h
+++ b/include/configs/am64x_evm.h
@@ -25,8 +25,10 @@
#endif
#define CONFIG_SPL_MAX_SIZE CONFIG_SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
+#if defined(CONFIG_TARGET_AM642_A53_EVM)
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SPL_TEXT_BASE + \
CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE - 4)
+#else
/*
* Maximum size in memory allocated to the SPL BSS. Keep it as tight as
* possible (to allow the build to go through), as this directly affects
@@ -43,9 +45,12 @@
*/
#define CONFIG_SPL_BSS_START_ADDR (CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX -\
CONFIG_SPL_BSS_MAX_SIZE)
+/* Set the stack right below the SPL BSS section */
+#define CONFIG_SYS_INIT_SP_ADDR CONFIG_SPL_BSS_START_ADDR
/* Configure R5 SPL post-relocation malloc pool in DDR */
#define CONFIG_SYS_SPL_MALLOC_START 0x84000000
#define CONFIG_SYS_SPL_MALLOC_SIZE SZ_16M
+#endif
#define PARTS_DEFAULT \
/* Linux partitions */ \