]> git.baikalelectronics.ru Git - uboot.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)
commitac2d9a30880e092ac4fbb20d8ef3e9309ecc80d3
tree31c30941857385ddee334bd3449dcbe51860e36b
parentef3ba0099d0bfe3e26c77a4d32dd2639c6f862f6
arm64: xilinx: Move board_get_usable_ram_top() to common location

The commit 043ef21b4b64 ("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