diff options
author | Thierry Reding <treding@nvidia.com> | 2021-09-03 15:16:19 +0200 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2021-10-13 14:18:30 -0700 |
commit | 46cb067803bef50cb8a1334a56897d05b5f85e02 (patch) | |
tree | faafb8dd57963a9cb6359ccd7cd9f2beee04af84 /lib/fdtdec_test.c | |
parent | 4bf88ba76abb224b3ca258a2f502384ec6c86bd6 (diff) | |
download | u-boot-46cb067803bef50cb8a1334a56897d05b5f85e02.tar.gz |
fdtdec: Support compatible string list for reserved memory
Reserved memory nodes can have a compatible string list to identify the
type of reserved memory that they represent. Support specifying an
optional compatible string list when creating these nodes.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'lib/fdtdec_test.c')
-rw-r--r-- | lib/fdtdec_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fdtdec_test.c b/lib/fdtdec_test.c index 760aca2669d..72c3001a210 100644 --- a/lib/fdtdec_test.c +++ b/lib/fdtdec_test.c @@ -190,7 +190,7 @@ static int make_fdt_carveout_device(void *fdt, uint32_t na, uint32_t ns) CHECK(fdt_setprop(fdt, offset, "reg", cells, (na + ns) * sizeof(*cells))); return fdtdec_set_carveout(fdt, name, "memory-region", 0, - "framebuffer", &carveout); + "framebuffer", NULL, 0, &carveout); } static int check_fdt_carveout(void *fdt, uint32_t address_cells, @@ -215,7 +215,7 @@ static int check_fdt_carveout(void *fdt, uint32_t address_cells, &expected.end, address_cells, size_cells); CHECK(fdtdec_get_carveout(fdt, name, "memory-region", 0, &carveout, - NULL)); + NULL, NULL, NULL)); if ((carveout.start != expected.start) || (carveout.end != expected.end)) { |