Browse Source

Merge "refactor(stm32mp1): use a macro for header size" into integration

pull/1983/merge
Madhukar Pappireddy 3 years ago
committed by TrustedFirmware Code Review
parent
commit
d6854cd1d9
  1. 2
      plat/st/stm32mp1/stm32mp1.ld.S
  2. 2
      plat/st/stm32mp1/stm32mp1_def.h

2
plat/st/stm32mp1/stm32mp1.ld.S

@ -16,7 +16,7 @@ OUTPUT_ARCH(PLATFORM_LINKER_ARCH)
ENTRY(__BL2_IMAGE_START__)
MEMORY {
HEADER (rw) : ORIGIN = 0x00000000, LENGTH = 0x3000
HEADER (rw) : ORIGIN = 0x00000000, LENGTH = STM32MP_HEADER_RESERVED_SIZE
RAM (rwx) : ORIGIN = STM32MP_BINARY_BASE, LENGTH = STM32MP_BINARY_SIZE
}

2
plat/st/stm32mp1/stm32mp1_def.h

@ -102,6 +102,8 @@ enum ddr_type {
#define STM32MP_PARAM_LOAD_SIZE U(0x00002400) /* 9 KB for param */
/* 256 Octets reserved for header */
#define STM32MP_HEADER_SIZE U(0x00000100)
/* round_up(STM32MP_PARAM_LOAD_SIZE + STM32MP_HEADER_SIZE, PAGE_SIZE) */
#define STM32MP_HEADER_RESERVED_SIZE U(0x3000)
#define STM32MP_BINARY_BASE (STM32MP_SEC_SYSRAM_BASE + \
STM32MP_PARAM_LOAD_SIZE + \

Loading…
Cancel
Save