u-boot/arch/arm/mach-stm32mp
Patrice Chotard c8510e397f stm32mp: Fix board_get_usable_ram_top()
When booting in EFI, lib/efi_loader/efi_memory.c calls
board_get_usable_ram_top(0) which returns by default
gd->ram_base + gd->ram_size which is the top of DDR.

In case of OPTEE boot, the top of DDR is currently reserved by OPTEE,
board_get_usable_ram_top(0) must return an address outside OPTEE
reserved memory.

gd->ram_top matches this constraint as it has already been initialized
by substracting all DT reserved-memory (included OPTEE memory area).

Fixes: 92b611e8b0 ("stm32mp: correctly handle board_get_usable_ram_top(0)")

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-09-06 10:00:11 +02:00
..
cmd_stm32prog stm32mp1: stm32prog: remove stm32prog_get_tee_partitions with FIP 2021-08-16 09:36:31 +02:00
include/mach stm32mp1: stm32prog: remove stm32prog_get_tee_partitions with FIP 2021-08-16 09:36:31 +02:00
boot_params.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bsec.c stm32mp: bsec: manage clock when present in device tree 2021-03-11 17:50:10 +01:00
cmd_stm32key.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
config.mk arm: stm32mp: add config for STM32IMAGE support 2021-08-16 09:34:27 +02:00
cpu.c arm: stm32mp1: force boot_device variable for invalid TAMP register value 2021-07-27 09:47:40 +02:00
dram_init.c stm32mp: Fix board_get_usable_ram_top() 2021-09-06 10:00:11 +02:00
ecdsa_romapi.c arm: stm32mp1: Implement ECDSA signature verification 2021-08-16 10:49:35 +02:00
fdt.c arm: stm32mp: handle the OP-TEE nodes in DT with FIP support 2021-08-16 09:34:27 +02:00
Kconfig arm: stm32mp1: Implement ECDSA signature verification 2021-08-16 10:49:35 +02:00
Makefile arm: stm32mp1: Implement ECDSA signature verification 2021-08-16 10:49:35 +02:00
psci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c stm32mp1: spl: Configure TrustZone controller for OP-TEE 2021-07-27 09:48:11 +02:00
syscon.c stm32mp: syscon: manage clock when present in device tree 2021-07-16 09:28:46 +02:00
tzc400.c arm: stm32mp: Implement support for TZC 400 controller 2021-07-27 09:48:09 +02:00