[RFC PATCH 01/19] configs: j7200_evm_r5: Used main_r5 reserved memory in DDR for malloc heap

Prasanth Babu Mantena p-mantena at ti.com
Fri Mar 13 14:58:42 CET 2026


While resuming from suspend, DDR is in retention, which was in use by
Linux. Memory used by linux can't be modified while resuming at spl stage.

So, move stack and heap allocations of R5 SPL to reserved memory location,
which is not used by linux at resume. Use main_r5 reserved regions as we
reload the firmwares on resume when linux comes back and r5 cores reload.

Signed-off-by: Prasanth Babu Mantena <p-mantena at ti.com>
---
 configs/j7200_evm_r5_defconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig
index 893aaafaa9c..a37f5bffa13 100644
--- a/configs/j7200_evm_r5_defconfig
+++ b/configs/j7200_evm_r5_defconfig
@@ -19,7 +19,7 @@ CONFIG_DM_RESET=y
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
-CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_STACK_R_ADDR=0xa3000000
 CONFIG_SPL_TEXT_BASE=0x41c00000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x41cf5bfc
@@ -38,6 +38,9 @@ CONFIG_SPL_MAX_SIZE=0xc0000
 CONFIG_SPL_BOARD_INIT=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_SYS_MALLOC=y
+CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
+CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0xa3000000
+CONFIG_SPL_SYS_MALLOC_SIZE=0x1000000
 CONFIG_SPL_EARLY_BSS=y
 CONFIG_SPL_SYS_MMCSD_RAW_MODE=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x800
-- 
2.34.1



More information about the U-Boot mailing list