aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-09-06 10:31:56 -0400
committerTom Rini <trini@konsulko.com>2021-09-06 10:31:56 -0400
commitad320c237bea7ece659efaf6c1d43475e0e5db6a (patch)
tree5feac3f85dd29e9b7cfef4f8f07153e4310eabbd
parent5e893897c675f2a4690b4decf9ee5a49ea9a2e3e (diff)
parentc8510e397fad4056619d2dab6f2b61c48766a239 (diff)
downloadu-boot-ad320c237bea7ece659efaf6c1d43475e0e5db6a.zip
u-boot-ad320c237bea7ece659efaf6c1d43475e0e5db6a.tar.gz
u-boot-ad320c237bea7ece659efaf6c1d43475e0e5db6a.tar.bz2
Merge tag 'u-boot-stm32-20210906' of https://source.denx.de/u-boot/custodians/u-boot-stm
- fix EFI boot with OP-TEE for STM32MP15 boards
-rw-r--r--arch/arm/mach-stm32mp/dram_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/dram_init.c b/arch/arm/mach-stm32mp/dram_init.c
index 94f25f3..920b99b 100644
--- a/arch/arm/mach-stm32mp/dram_init.c
+++ b/arch/arm/mach-stm32mp/dram_init.c
@@ -47,7 +47,7 @@ ulong board_get_usable_ram_top(ulong total_size)
struct lmb lmb;
if (!total_size)
- return gd->ram_base + gd->ram_size;
+ return gd->ram_top;
/* found enough not-reserved memory to relocated U-Boot */
lmb_init(&lmb);