u-boot/arch/arm/mach-stm32mp
Patrick Delaunay 92b611e8b0 stm32mp: correctly handle board_get_usable_ram_top(0)
The function board_get_usable_ram_top can be called after relocation
with total_size = 0 to get the uppermost pointer that is valid to access
in U-Boot.

When total_size = 0, the reserved memory should be not take in account
with lmb library and 'gd->ram_base + gd->ram_size' can be used.

It is the case today in lib/efi_loader/efi_memory.c:efi_add_known_memory()
and this patch avoids that the reserved memory for OP-TEE is not part of
the EFI available memory regions.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-08-16 10:49:35 +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: correctly handle board_get_usable_ram_top(0) 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: stm32mp: add config for STM32IMAGE support 2021-08-16 09:34:27 +02:00
Makefile arm: stm32mp: Implement support for TZC 400 controller 2021-07-27 09:48:09 +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