]> git.dujemihanovic.xyz Git - u-boot.git/commit
stm32mp: compute ram_top based on the optee base address only for STM32MP1
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 11 Oct 2024 15:31:48 +0000 (17:31 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 16 Oct 2024 18:18:56 +0000 (20:18 +0200)
commit5cb33c70b2c57248eb552e57fba8af305fa3b2c8
treed4e7e9c12ad258ba0952532f702595a8674da7fb
parent5fccc2891e280ea1f1beff1821d5c9762591bde2
stm32mp: compute ram_top based on the optee base address only for STM32MP1

Reserved memory for OP-TEE is located at end of DDR for STM32MP1 SoC only
(STM32MP13 and STM32MP15) and the OP-TEE reserved memory is located at the
beginning of DDR for STM32MP25 SoC, before CONFIG_TEXT_BASE and
with reserved memory for companion coprocessor. So the ram_top is limited
by OP-TEE reserved memory only for STM32MP1 SoC.

This patch solves an issue for ram_top value on STM32MP25 SoC because the
generic reserved memory management, based on LMB, is no more used before
relocation.

Fixes: 8242f14a3e6f ("stm32mp: compute ram_top based on the optee base address")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/dram_init.c