]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: xilinx: Move board_get_usable_ram_top() to common location
authorMichal Simek <michal.simek@amd.com>
Thu, 25 Aug 2022 12:23:10 +0000 (14:23 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
commita32c3e9e4fb6932f80a165f56dc52e7afcffb2b2
tree31c30941857385ddee334bd3449dcbe51860e36b
parentbe3a73c0c42c548bb892faed5b4e8e4fe7cd3295
arm64: xilinx: Move board_get_usable_ram_top() to common location

The commit ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory
location") adds functionality for ZynqMP to read reserved memory node and
do not place U-Boot to reserved location. This functionality is generic
across all Xilinx SOCs that's why move it to common location to be used by
all Xilinx SOCs.

On zynq platform this is also fixing issue where U-Boot was placed to
locating which was reserved already which ends up with error message
"ERROR: reserving fdt memory region failed (addr=30000000 size=10000000
flags=4)" which is shown when bdinfo is called.

Tested on vck190, zcu102, zc706 and kc705 to cover all platforms.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/b0817807912f7c7af6a8e1cf9ee04e5ab5de5f6a.1661430188.git.michal.simek@amd.com
board/xilinx/common/board.c
board/xilinx/microblaze-generic/microblaze-generic.c
board/xilinx/versal/board.c
board/xilinx/zynqmp/zynqmp.c