at91, smartweb: use SPL_SYS_MALLOC_F_LEN
authorHeiko Schocher <hs@denx.de>
Tue, 8 Aug 2017 13:10:24 +0000 (15:10 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Aug 2017 15:34:12 +0000 (11:34 -0400)
commit f1896c45cb2f: spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
introduced independent SYS_MALLOC_F_LEN for SPL and U-Boot.

Use it on the smartweb board, as above commit broke
the smartweb board.

Signed-off-by: Heiko Schocher <hs@denx.de>
configs/smartweb_defconfig
include/configs/smartweb.h

index 1db2acc7e7daa7854dccac557cd0be8e1c582765..92359f460c32f22febd76f40f58350e3966f5fd9 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SPL_NAND_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="at91sam9260-smartweb"
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x400
 CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9260"
 CONFIG_ENV_IS_IN_NAND=y
index a80d2902b40f45ab2359e7a3beda10137b2d32b1..5b5046873ba5429556a71dcfb3079fa1608916c4 100644 (file)
 #define CONFIG_SYS_INIT_SP_ADDR                0x301000
 #define CONFIG_SPL_STACK_R
 #define CONFIG_SPL_STACK_R_ADDR                CONFIG_SYS_TEXT_BASE
-/* we have only 4k sram in SPL, so cut SYS_MALLOC_F_LEN */
-#undef CONFIG_SYS_MALLOC_F_LEN
-#define CONFIG_SYS_MALLOC_F_LEN 0x400
 #else
 /*
  * Initial stack pointer: 4k - GENERATED_GBL_DATA_SIZE in internal SRAM,