mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
9019487608
commit
b9aad37591
10 changed files with 50 additions and 34 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue