stm32mp1: Move config SYS_MALLOC_LEN to Kconfig
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 18 Apr 2019 15:32:36 +0000 (17:32 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 23 May 2019 09:36:46 +0000 (11:36 +0200)
This patch moves the the config SYS_MALLOC_LEN to
Kconfig as it is already done for zynq arch in
commit 01aa5b8f0503 ("Kconfig: Move config
SYS_MALLOC_LEN to Kconfig for zynq")

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Kconfig
arch/arm/mach-stm32mp/Kconfig
include/configs/stm32mp1.h

diff --git a/Kconfig b/Kconfig
index 5f5c5ccfd6b6b51f28ee433f7b7cfd528ef91755..fcde0c35e2c4ee85ece6f982251352dcb3f2feff 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -147,7 +147,7 @@ config SYS_MALLOC_F_LEN
 
 config SYS_MALLOC_LEN
        hex "Define memory for Dynamic allocation"
-       depends on ARCH_ZYNQ || ARCH_VERSAL
+       depends on ARCH_ZYNQ || ARCH_VERSAL || ARCH_STM32MP
        help
          This defines memory to be allocated for Dynamic allocation
          TODO: Use for other architectures
index 73aa382712268ddcb14477e651e7f6b31b0566d6..39a2a3273d919cd548d790ef96a4c3b10a93ddd5 100644 (file)
@@ -23,6 +23,9 @@ config SPL
 config SYS_SOC
        default "stm32mp"
 
+config SYS_MALLOC_LEN
+       default 0x2000000
+
 config TARGET_STM32MP1
        bool "Support stm32mp1xx"
        select ARCH_SUPPORT_PSCI if !STM32MP1_TRUSTED
index fd6c97a0c619dbfea5e70fe1fd6047a947424b6f..1d825378c2f8831baa7368eb5c69a79bf8fec5ff 100644 (file)
 #define CONFIG_ARMV7_SECURE_MAX_SIZE           STM32_SYSRAM_SIZE
 #endif
 
-/*
- * malloc() pool size
- */
-#define CONFIG_SYS_MALLOC_LEN                  SZ_32M
-
 /*
  * Configuration of the external SRAM memory used by U-Boot
  */