From patchwork Fri Apr 3 10:43:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 237144 List-Id: U-Boot discussion From: laurentiu.tudor at nxp.com (Laurentiu Tudor) Date: Fri, 3 Apr 2020 13:43:02 +0300 Subject: [PATCH v2 0/2] fdtdec: support multiple phandles in memory carveout Message-ID: <20200403104304.32616-1-laurentiu.tudor@nxp.com> Content-Type: text/plain; charset="us-ascii" fdtdec_set_carveout() is limited to only one phandle. Fix this limitation by adding support for multiple phandles and also add an unit test for the function. Changes in v2: - added a unit test for the function (Simon) - added a cover letter Laurentiu Tudor (2): fdtdec: support multiple phandles in memory carveout test: fdtdec: test fdtdec_set_carveout() lib/fdtdec.c | 36 +++++++++++++++++++++-------- test/dm/Makefile | 1 + test/dm/fdtdec.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 10 deletions(-) create mode 100644 test/dm/fdtdec.c