]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: atmel: sam9x60ek: add SYS_MALLOC_F_LEN to SYS_INIT_SP_ADDR
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 7 Oct 2020 15:17:07 +0000 (18:17 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Mon, 19 Oct 2020 06:19:53 +0000 (09:19 +0300)
Heap base address is computed based on SYS_INIT_SP_ADDR by
subtracting the SYS_MALLOC_F_LEN value in
board_init_f_init_reserve().

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
include/configs/sam9x60ek.h

index 19714402ca45cc1605ca411c943e2e08634ccd73..6a6f1de41d1ee23e057b45d99dc590ea93e3d500 100644 (file)
@@ -40,7 +40,8 @@
 #define CONFIG_SYS_SDRAM_SIZE          0x10000000      /* 256 megs */
 
 #define CONFIG_SYS_INIT_SP_ADDR \
-       (CONFIG_SYS_SDRAM_BASE + 16 * 1024 - GENERATED_GBL_DATA_SIZE)
+       (CONFIG_SYS_SDRAM_BASE + 16 * 1024 + CONFIG_SYS_MALLOC_F_LEN - \
+        GENERATED_GBL_DATA_SIZE)
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND