diff options
author | Thierry Reding <treding@nvidia.com> | 2021-09-03 15:16:21 +0200 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2021-10-13 14:18:30 -0700 |
commit | b9aad375917d4ae0dec5aedcdfa79929e1dbb730 (patch) | |
tree | 6b5ae83f42b3d4c77d3f7a84f37a488393f4e269 /lib/fdtdec_test.c | |
parent | 9019487608c8afe7d3fc34cb5192df064b60cdb7 (diff) | |
download | u-boot-b9aad375917d4ae0dec5aedcdfa79929e1dbb730.zip u-boot-b9aad375917d4ae0dec5aedcdfa79929e1dbb730.tar.gz u-boot-b9aad375917d4ae0dec5aedcdfa79929e1dbb730.tar.bz2 |
fdtdec: Support reserved-memory flags
Reserved memory nodes can have additional flags. Support reading and
writing these flags to ensure that reserved memory nodes can be properly
parsed and emitted.
This converts support for the existing "no-map" flag to avoid extending
the argument list for fdtdec_add_reserved_memory() to excessive length.
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 3af9fb5..85351c7 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, &carveout, - "framebuffer", NULL, 0); + "framebuffer", NULL, 0, 0); } 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, NULL, NULL, NULL)); if ((carveout.start != expected.start) || (carveout.end != expected.end)) { |