summaryrefslogtreecommitdiff
path: root/lib/tiny-printf.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2024-08-26 17:29:39 +0530
committerTom Rini <trini@konsulko.com>2024-09-03 14:08:50 -0600
commit8242f14a3e6f03e903006eaffff49dea88112578 (patch)
tree0610f3ebc1d14d2614cf9a82ce05a1f1b7d83741 /lib/tiny-printf.c
parent5fe9e0deabb1067eb6b1949b6eb4d895ab86c426 (diff)
stm32mp: compute ram_top based on the optee base address
The value of ram_top address currently gets computed in an indirect manner. The boot_fdt_add_mem_rsv_regions() function gets called first to reserve the memory region occupied by OP-TEE in the LMB memory map. This is followed by a call to the lmb_alloc() API, which returns an address which is below the OP-TEE base address. This address is the value of ram_top returned by the board_get_usable_ram_top() function. This has now changed, as the LMB memory map, which is no longer local, gets set up after relocation. Get the OP-TEE base address by reading the device tree, and set the ram_top from this value. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Diffstat (limited to 'lib/tiny-printf.c')
0 files changed, 0 insertions, 0 deletions