[v3 4/8] Kconfigs: layerscape: use a convenient default value for SYS_MALLOC_F_LEN
Priyanka Jain
priyanka.jain at nxp.com
Thu Dec 5 07:39:47 CET 2019
>-----Original Message-----
>From: Biwen Li <biwen.li at nxp.com>
>Sent: Thursday, December 5, 2019 11:41 AM
>To: Jagdish Gediya <jagdish.gediya at nxp.com>; Priyanka Jain
><priyanka.jain at nxp.com>; hs at denx.de; jagan at amarulasolutions.com;
>aford173 at gmail.com; Alison Wang <alison.wang at nxp.com>;
>bhaskar.upadhaya at nxp.com; feng.li_2 at nxp.com; jh80.chung at samsung.com;
>Pramod Kumar <pramod.kumar_1 at nxp.com>; Rajesh Bhagat
><rajesh.bhagat at nxp.com>; Ruchika Gupta <ruchika.gupta at nxp.com>;
>olteanv at gmail.com
>Cc: Xiaobo Xie <xiaobo.xie at nxp.com>; Jiafei Pan <jiafei.pan at nxp.com>; u-
>boot at lists.denx.de; Biwen Li <biwen.li at nxp.com>
>Subject: [v3 4/8] Kconfigs: layerscape: use a convenient default value for
>SYS_MALLOC_F_LEN
>
>The default value of CONFIG_SYS_MALLOC_F_LEN (0x400) leaves U-Boot with
>not enough memory to load i2c driver before relocate, causing it to hang.
>
>Change the default value of CONFIG_SYS_MALLOC_F_LEN for below SoCs,
>- LS1012A
>- LS1021A
>- LS1043A
>- LS1046A
>
>Signed-off-by: Biwen Li <biwen.li at nxp.com>
>---
>Changes in v3:
> - update commit messages
>
>Changes in v2:
> - none
>
> Kconfig | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/Kconfig b/Kconfig
>index e22417ec44..3e6d9f26ea 100644
>--- a/Kconfig
>+++ b/Kconfig
>@@ -146,7 +146,9 @@ config SYS_MALLOC_F_LEN
> default 0x1000 if AM33XX
> default 0x2800 if SANDBOX
> default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \
>- ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5)
>+ ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
>+ ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A
>|| \
>+ ARCH_LS1046A)
> default 0x400
> help
> Before relocation, memory is very limited on many platforms. Still,
>--
>2.17.1
Reviewed-by: Priyanka Jain <priyanka.jain at nxp.com>
More information about the U-Boot
mailing list