From patchwork Thu Jun 25 07:26:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuldeep Singh X-Patchwork-Id: 242941 List-Id: U-Boot discussion From: kuldeep.singh at nxp.com (Kuldeep Singh) Date: Thu, 25 Jun 2020 12:56:22 +0530 Subject: [PATCH] configs: ls1012a: Increase CONFIG_SYS_MALLOC_LEN value Message-ID: <1593069982-32560-1-git-send-email-kuldeep.singh@nxp.com> Previous attempt to increase CONFIG_SYS_MALLOC_LEN was done in commit c084a8edf4e2 ("configs: ls1012a: Increase CONFIG_SYS_MALLOC_LEN size") which increased malloc memory to ~1M. PFE firmware alone requires 3M of dynamic memory allocation and therefore, increase the config value to a larger value i.e 5M. This size should be enough as of now to accommodate further memory requirements. Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/project/uboot/patch/1590646373-8795-1-git-send-email-kuldeep.singh at nxp.com/ include/configs/ls1012a_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h index 06af8bf..95fa051 100644 --- a/include/configs/ls1012a_common.h +++ b/include/configs/ls1012a_common.h @@ -10,6 +10,7 @@ #include #include +#include #define CONFIG_SYS_CLK_FREQ 125000000 @@ -34,7 +35,7 @@ #define CONFIG_LAYERSCAPE_NS_ACCESS /* Size of malloc() pool */ -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024) +#define CONFIG_SYS_MALLOC_LEN (5 * SZ_1M) /* PFE */ #define CONFIG_SYS_FMAN_FW_ADDR 0x400d0000