mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
stm32mp1: set BL sizes regardless of flags
BL2 size is set to 100kB, and BL32 to 72kB, regardless of OP-TEE or stack protector flags. Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: Id7411bd55a4140718d64a647d81037720615fc81
This commit is contained in:
parent
4324a14bf5
commit
d2130da2b5
1 changed files with 0 additions and 16 deletions
|
@ -117,30 +117,14 @@ enum ddr_type {
|
|||
#define STM32MP_OPTEE_SIZE (STM32MP_DTB_BASE - \
|
||||
STM32MP_OPTEE_BASE)
|
||||
#else
|
||||
#if STACK_PROTECTOR_ENABLED
|
||||
#define STM32MP_BL32_SIZE U(0x00012000) /* 72 KB for BL32 */
|
||||
#else
|
||||
#define STM32MP_BL32_SIZE U(0x00011000) /* 68 KB for BL32 */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define STM32MP_BL32_BASE (STM32MP_SEC_SYSRAM_BASE + \
|
||||
STM32MP_SEC_SYSRAM_SIZE - \
|
||||
STM32MP_BL32_SIZE)
|
||||
|
||||
#ifdef AARCH32_SP_OPTEE
|
||||
#if STACK_PROTECTOR_ENABLED
|
||||
#define STM32MP_BL2_SIZE U(0x0001A000) /* 100 KB for BL2 */
|
||||
#else
|
||||
#define STM32MP_BL2_SIZE U(0x00018000) /* 92 KB for BL2 */
|
||||
#endif
|
||||
#else
|
||||
#if STACK_PROTECTOR_ENABLED
|
||||
#define STM32MP_BL2_SIZE U(0x00019000) /* 96 KB for BL2 */
|
||||
#else
|
||||
#define STM32MP_BL2_SIZE U(0x00017000) /* 88 KB for BL2 */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define STM32MP_BL2_BASE (STM32MP_BL32_BASE - \
|
||||
STM32MP_BL2_SIZE)
|
||||
|
|
Loading…
Add table
Reference in a new issue