mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 14:55:16 +00:00
feat(stm32mp1): configure the serial boot load address
For product with 128MB DDR size, the OP-TEE is located at the end of the DDR and the FIP can't be loaded at the default location because it overlap the OP-TEE final location. So the default value for DWL_BUFFER_BASE is invalid. To avoid this conflict the serial boot load address = DWL_BUFFER_BASE can be modified with a configuration flags. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Ie27b87c10c57fea5d4c6200ce4f624e775b9a080
This commit is contained in:
parent
32f2ca04bf
commit
4b2f23e55f
3 changed files with 6 additions and 1 deletions
|
@ -144,6 +144,8 @@ Other configuration flags:
|
|||
|
||||
- | ``DTB_FILE_NAME``: to precise board device-tree blob to be used.
|
||||
| Default: stm32mp157c-ev1.dtb
|
||||
- | ``DWL_BUFFER_BASE``: the 'serial boot' load address of FIP,
|
||||
| default location (end of the first 128MB) is used when absent
|
||||
- | ``STM32MP_EARLY_CONSOLE``: to enable early traces before clock driver is setup.
|
||||
| Default: 0 (disabled)
|
||||
- | ``STM32MP_UART_BAUDRATE``: to select UART baud rate.
|
||||
|
|
|
@ -103,7 +103,6 @@
|
|||
#define PLAT_STM32MP_NS_IMAGE_OFFSET BL33_BASE
|
||||
|
||||
/* Needed by STM32CubeProgrammer support */
|
||||
#define DWL_BUFFER_BASE (STM32MP_DDR_BASE + U(0x07000000))
|
||||
#define DWL_BUFFER_SIZE U(0x01000000)
|
||||
|
||||
/*
|
||||
|
|
|
@ -121,6 +121,9 @@ STM32MP_EMMC_BOOT ?= 0
|
|||
STM32MP_USB_PROGRAMMER ?= 0
|
||||
STM32MP_UART_PROGRAMMER ?= 0
|
||||
|
||||
# Download load address for serial boot devices
|
||||
DWL_BUFFER_BASE ?= 0xC7000000
|
||||
|
||||
# Device tree
|
||||
ifeq ($(STM32MP13),1)
|
||||
BL2_DTSI := stm32mp13-bl2.dtsi
|
||||
|
@ -225,6 +228,7 @@ $(eval $(call assert_numerics,\
|
|||
|
||||
$(eval $(call add_defines,\
|
||||
$(sort \
|
||||
DWL_BUFFER_BASE \
|
||||
PLAT_PARTITION_MAX_ENTRIES \
|
||||
PLAT_XLAT_TABLES_DYNAMIC \
|
||||
STM32_TF_A_COPIES \
|
||||
|
|
Loading…
Add table
Reference in a new issue