]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: memtop: add logic to detect ram_top
authorSughosh Ganu <sughosh.ganu@linaro.org>
Fri, 25 Oct 2024 17:27:23 +0000 (22:57 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 15 Nov 2024 13:32:02 +0000 (14:32 +0100)
commitfeb423a3a3d34ed7903d6eb833ddd0593a410474
treefe024078f6a8b01c4a22e0c8caf0c07c87abe77f
parent7aeed221dbd354f34428d709dfd7679a2c94199d
common: memtop: add logic to detect ram_top

Add generic logic to determine the ram_top value for boards. Earlier,
this was achieved in an indirect manner through a set of LMB API's.
That has since changed so that the LMB code is available only after
relocation. Replace those LMB calls with a single call to
get_mem_top() to determine the value of ram_top.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20241025172724.195093-2-sughosh.ganu@linaro.org
Signed-off-by: Michal Simek <michal.simek@amd.com>
common/Makefile
common/memtop.c [new file with mode: 0644]
include/memtop.h [new file with mode: 0644]