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:
committed by
Tom Warren
parent
9019487608
commit
b9aad37591
@@ -161,6 +161,7 @@ int optee_copy_fdt_nodes(void *new_blob)
|
||||
.start = res.start,
|
||||
.end = res.end,
|
||||
};
|
||||
unsigned long flags = FDTDEC_RESERVED_MEMORY_NO_MAP;
|
||||
char *oldname, *nodename, *tmp;
|
||||
|
||||
oldname = strdup(name);
|
||||
@@ -178,7 +179,7 @@ int optee_copy_fdt_nodes(void *new_blob)
|
||||
nodename,
|
||||
&carveout,
|
||||
NULL, 0,
|
||||
NULL, true);
|
||||
NULL, flags);
|
||||
free(oldname);
|
||||
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user