From patchwork Fri Jul 10 12:40:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 241305 List-Id: U-Boot discussion From: michal.simek at xilinx.com (Michal Simek) Date: Fri, 10 Jul 2020 14:40:54 +0200 Subject: [PATCH v2 0/3] xilinx: Enable Versal allocation from low memory Message-ID: Hi, Generated DTS files don't need to have memory nodes sorted out that's why it can happen that the first memory node is not pointing to lowest DDR which is normally used for system boot. That's why new function was introduced which finds out the lowest memory available and use it for u-boot and later can be also used for OS. The series is based on https://lists.denx.de/pipermail/u-boot/2020-July/419656.html which simplified conversion to livetree API which was asked by Simon. And also I keep conversion to livetree in separate patch on the top of v1 which shouldn't be a problem. The series is still missing tests which Simon asked for but I would like to get feedback about these patches. If they are fine I would like to have discussion how/where to write little test for it. Thanks, Michal Changes in v2: - Separate Xilinx change from generic patch - new patch asked by Simon - split from generic patch sent in v1 Michal Simek (3): lib: fdt: Introduce fdtdec_setup_mem_size_base_lowest() lib: fdt: Convert fdtdes_setup_mem..() to livetree API xilinx: versal: Use lowest memory for U-Boot board/xilinx/versal/board.c | 2 +- include/fdtdec.h | 17 +++++++ lib/fdtdec.c | 90 ++++++++++++++++++++++++++++--------- 3 files changed, 87 insertions(+), 22 deletions(-)