diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2020-06-02 10:32:08 +0300 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2021-01-07 09:44:15 +0200 |
commit | ac3740c9f2c8d75e5d57d852f85eee30fe16b2c0 (patch) | |
tree | 9446f178c2e40c68331d9296f6ef93b1a0d0bd57 | |
parent | 1d463d6735b8d9ec3342f52acbe9b0c49feeeca2 (diff) | |
download | u-boot-ac3740c9f2c8d75e5d57d852f85eee30fe16b2c0.tar.gz |
board: atmel: sama7g5ek: add SYS_MALLOC_F_LEN to SYS_INIT_SP_ADDR
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>
-rw-r--r-- | include/configs/sama7g5ek.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/sama7g5ek.h b/include/configs/sama7g5ek.h index 3b3432ba5e6..fbf0274b382 100644 --- a/include/configs/sama7g5ek.h +++ b/include/configs/sama7g5ek.h @@ -20,7 +20,8 @@ #define CONFIG_SYS_INIT_SP_ADDR 0x218000 #else #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) #endif #define CONFIG_SYS_LOAD_ADDR 0x62000000 /* load address */ |