From 00ea76e8004e8582798123f3698f91b32514810f Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sun, 22 Nov 2015 08:21:04 +0100 Subject: rockchip: Explicitly set CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN Now that u-boot relocates the malloc area in SPL to SDRAM, with the malloc area sitting below the SPL_STACK_R_ADDR the SPL_STACK_R_MALLOC_SIMPLE_LEN needs to be set explicitly for rockchip as its SPL_STACK_R_ADDR (512kb) is smaller then STACK_R_MALLOC_SIMPLE_LEN (1Mb). Using the same value as SYS_MALLOC_F_LEN (8kb) is enough to load u-boot from SD card. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- configs/firefly-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/firefly-rk3288_defconfig') diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig index 47731b8b117..b645af56157 100644 --- a/configs/firefly-rk3288_defconfig +++ b/configs/firefly-rk3288_defconfig @@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_ROCKCHIP_RK3288=y CONFIG_TARGET_FIREFLY_RK3288=y CONFIG_SPL_STACK_R_ADDR=0x80000 +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000 CONFIG_DEFAULT_DEVICE_TREE="rk3288-firefly" CONFIG_SPL_STACK_R=y # CONFIG_CMD_IMLS is not set -- cgit v1.2.3