imx: imx93_{evk, frdm, qsb}: Fix conflict SPL early malloc address
authorYe Li <ye.li@nxp.com>
Wed, 20 Aug 2025 13:08:51 +0000 (15:08 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 23 Aug 2025 11:21:48 +0000 (08:21 -0300)
Because the early malloc pool size is set to 0x18000, so using this
start address may cause conflict with ATF, then corrupt the heap data.
So we delete the definition to use the default early malloc pool from
CONFIG_SPL_STACK to avoid any conflict

Signed-off-by: Ye Li <ye.li@nxp.com>
Cherry picked from nxp-imx/uboot-imx commit
1ba675df122627a19debe1d807877052705372c6

Jérémie Dautheribes: applied the same patch to the frdm and qsb
imx93-based boards
Signed-off-by: Jérémie Dautheribes <jeremie.dautheribes@bootlin.com>
include/configs/imx93_evk.h
include/configs/imx93_frdm.h
include/configs/imx93_qsb.h

index e7db016..ffd72a3 100644 (file)
 #define CFG_SYS_UBOOT_BASE     \
        (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
-#ifdef CONFIG_XPL_BUILD
-#define CFG_MALLOC_F_ADDR              0x204D0000
-#endif
-
 #ifdef CONFIG_ENV_MMC_DEVICE_INDEX
 #define IMX93_EVK_MMC_ENV_DEV CONFIG_ENV_MMC_DEVICE_INDEX
 #else
index 987fcac..c98c107 100644 (file)
 #define CFG_SYS_UBOOT_BASE     \
        (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
-#ifdef CONFIG_XPL_BUILD
-#define CFG_MALLOC_F_ADDR              0x204D0000
-#endif
-
 /* Link Definitions */
 
 #define CFG_SYS_INIT_RAM_ADDR          0x80000000
index 5ddc191..a7b94f7 100644 (file)
@@ -9,10 +9,6 @@
 #define CFG_SYS_UBOOT_BASE     \
        (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
-#ifdef CONFIG_SPL_BUILD
-#define CFG_MALLOC_F_ADDR      0x204D0000
-#endif
-
 #define CFG_SYS_INIT_RAM_ADDR  0x80000000
 #define CFG_SYS_INIT_RAM_SIZE  0x200000