rockchip: Move config SYS_MALLOC_LEN to Kconfig
PATCH 1/1 rockchip: Move config SYS_MALLOC_LEN to Kconfig
Use Kconfig for option SYS_MALLOC_LEN and default to 0x2000000.
Signed-off-by Kever Yang <[email protected]>
---
Kconfig | 3 ++- include/configs/rk3036_common.h | 1 - include/configs/rk3128_common.h | 1 - include/configs/rk3188_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3328_common.h | 1 - include/configs/rk3368_common.h | 1 - include/configs/rk3399_common.h | 1 - include/configs/rv1108_common.h | 1 - 10 files changed, 2 insertions(+), 10 deletions(-)
Kconfig +2 -1
@@ -156,7 +156,8 @@ config SYS_MALLOC_F_LEN config SYS_MALLOC_LEN hex "Define memory for Dynamic allocation" - depends on ARCH_ZYNQ || ARCH_VERSAL || ARCH_STM32MP + depends on ARCH_ZYNQ || ARCH_VERSAL || ARCH_STM32MP || ARCH_ROCKCHIP + default 0x2000000 if ARCH_ROCKCHIP help This defines memory to be allocated for Dynamic allocation TODO: Use for other architectures
include/configs/rk3036_common.h +0 -1
@@ -8,7 +8,6 @@#include <asm/arch-rockchip/hardware.h> #include "rockchip-common.h" -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_SKIP_LOWLEVEL_INIT
include/configs/rk3128_common.h +0 -1
@@ -10,7 +10,6 @@#define CONFIG_SYS_MAXARGS 16#define CONFIG_BAUDRATE 115200 -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_SKIP_LOWLEVEL_INIT
include/configs/rk3188_common.h +0 -1
@@ -12,7 +12,6 @@#include "rockchip-common.h" #define CONFIG_SKIP_LOWLEVEL_INIT_ONLY -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#ifdef CONFIG_SPL_ROCKCHIP_BACK_TO_BROM
include/configs/rk322x_common.h +0 -1
@@ -9,7 +9,6 @@#include "rockchip-common.h" #define CONFIG_SKIP_LOWLEVEL_INIT -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_SYS_BOOTM_LEN (64 << 20)/* 64M */
include/configs/rk3288_common.h +0 -1
@@ -12,7 +12,6 @@#define CONFIG_SYS_BOOTM_LEN (16 << 20)/* 16MB */ #define CONFIG_SKIP_LOWLEVEL_INIT_ONLY -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_ROCKCHIP_STIMER_BASE 0xff810020
include/configs/rk3328_common.h +0 -1
@@ -12,7 +12,6 @@#define CONFIG_ROCKCHIP_STIMER_BASE 0xff1d0020 -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_SKIP_LOWLEVEL_INIT
include/configs/rk3368_common.h +0 -1
@@ -16,7 +16,6 @@#define CONFIG_SYS_SDRAM_BASE 0#define SDRAM_MAX_SIZE 0xff000000#define CONFIG_BAUDRATE 115200 -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_SKIP_LOWLEVEL_INIT
include/configs/rk3399_common.h +0 -1
@@ -8,7 +8,6 @@#include "rockchip-common.h" -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_SKIP_LOWLEVEL_INIT
include/configs/rv1108_common.h +0 -1
@@ -10,7 +10,6 @@#define CONFIG_IRAM_BASE 0x10080000 -#define CONFIG_SYS_MALLOC_LEN (32 << 20)#define CONFIG_SYS_CBSIZE 1024#define CONFIG_SKIP_LOWLEVEL_INIT
Signature · 1 line
2.17.1
PATCH 1/1 rockchip: Move config SYS_MALLOC_LEN to Kconfig
Quoted 6 lines · Kever Yang
Use
Kconfigfor optionSYS_MALLOC_LENand default to0x2000000.Signed-off-by Kever Yang <[email protected]>---
Quoted 11 lines
Kconfig | 3 ++- include/configs/rk3036_common.h | 1 - include/configs/rk3128_common.h | 1 - include/configs/rk3188_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3328_common.h | 1 - include/configs/rk3368_common.h | 1 - include/configs/rk3399_common.h | 1 - include/configs/rv1108_common.h | 1 - 10 files changed, 2 insertions(+), 10 deletions(-)
Reviewed-by Simon Glass <[email protected]>