[PATCH v2] ls10xxx: Use a sane SPL_SYS_MALLOC_F_LEN default

Sean Anderson sean.anderson at seco.com
Thu Apr 28 18:39:49 CEST 2022


SPL_SYS_MALLOC_F_LEN defaults to SYS_MALLOC_F_LEN. 0x10000 is 64 KiB, or
around half of the total OCRAM size. Revert to the default of 0x2000. This
fixes SPL boot.

Fixes: 545eceb520 ("imx8/ls10xx: Use a sane SYS_MALLOC_F_LEN default")
Signed-off-by: Sean Anderson <sean.anderson at seco.com>
Reviewed-by: Fabio Estevam <festevam at denx.de>
---

Changes in v2:
- Reduce SYS_MALLOC_F_LEN as well

 Kconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Kconfig b/Kconfig
index bdae59e06f..9aeb9d52ad 100644
--- a/Kconfig
+++ b/Kconfig
@@ -257,9 +257,7 @@ config SYS_MALLOC_F_LEN
 	default 0x4000 if SANDBOX || RISCV || ARCH_APPLE || ROCKCHIP_RK3368 || \
 			  ROCKCHIP_RK3399
 	default 0x8000 if RCAR_GEN3
-	default 0x10000 if ARCH_IMX8 || (ARCH_IMX8M && !IMX8MQ) || \
-			   ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
-			   ARCH_LS1046A
+	default 0x10000 if ARCH_IMX8 || (ARCH_IMX8M && !IMX8MQ)
 	default 0x2000
 	help
 	  Before relocation, memory is very limited on many platforms. Still,
-- 
2.35.1.1320.gc452695387.dirty



More information about the U-Boot mailing list