diff options
| author | Thierry Reding <[email protected]> | 2021-09-03 15:16:21 +0200 |
|---|---|---|
| committer | Tom Warren <[email protected]> | 2021-10-13 14:18:30 -0700 |
| commit | b9aad375917d4ae0dec5aedcdfa79929e1dbb730 (patch) | |
| tree | 6b5ae83f42b3d4c77d3f7a84f37a488393f4e269 /lib/fdtdec_test.c | |
| parent | 9019487608c8afe7d3fc34cb5192df064b60cdb7 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Tom Warren <[email protected]>
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 3af9fb5da60..85351c75ca2 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)) { |
