diff options
author | Pali Rohár <pali@kernel.org> | 2022-01-12 20:32:08 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-01-14 13:39:16 +0300 |
commit | 1dcbcc715e87da6d30b8ae22f1ef04c881cfea5b (patch) | |
tree | 875f11c867129e7550c7e86ae672052b8b0612a8 /include/configs/ds414.h | |
parent | 5435f6e3fd6c16263debdf9048c8357c7e2e4d31 (diff) | |
download | u-boot-1dcbcc715e87da6d30b8ae22f1ef04c881cfea5b.tar.xz |
arm: mvebu: Replace hardcoded values 0x0030/0x4030 by proper calculation
These hardcoded values were calculated from CONFIG_SPL_TEXT_BASE macro. Now
this macro is configurable via Kconfig, so calculate values 0x0030/0x4030
at compile time via CONFIG_SPL_TEXT_BASE option. Values 0x0030/0x4030
represents offset of CONFIG_SPL_TEXT_BASE from address 0x40000000.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/configs/ds414.h')
-rw-r--r-- | include/configs/ds414.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/ds414.h b/include/configs/ds414.h index 7fba2b4cc4..dbccd46bbd 100644 --- a/include/configs/ds414.h +++ b/include/configs/ds414.h @@ -45,7 +45,7 @@ /* SPL */ /* Defines for SPL */ -#define CONFIG_SPL_MAX_SIZE ((128 << 10) - 0x4030) +#define CONFIG_SPL_MAX_SIZE ((128 << 10) - (CONFIG_SPL_TEXT_BASE - 0x40000000)) #define CONFIG_SPL_BSS_START_ADDR (0x40000000 + (128 << 10)) #define CONFIG_SPL_BSS_MAX_SIZE (16 << 10) |