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 /board/nvidia/p3450-0000 | |
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 'board/nvidia/p3450-0000')
-rw-r--r-- | board/nvidia/p3450-0000/p3450-0000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/nvidia/p3450-0000/p3450-0000.c b/board/nvidia/p3450-0000/p3450-0000.c index e737fc1..2770862 100644 --- a/board/nvidia/p3450-0000/p3450-0000.c +++ b/board/nvidia/p3450-0000/p3450-0000.c @@ -128,7 +128,7 @@ static int ft_copy_carveout(void *dst, const void *src, const char *node) int err; err = fdtdec_get_carveout(src, node, "memory-region", 0, &fb, NULL, - NULL, NULL); + NULL, NULL, NULL); if (err < 0) { if (err != -FDT_ERR_NOTFOUND) printf("failed to get carveout for %s: %d\n", node, @@ -138,7 +138,7 @@ static int ft_copy_carveout(void *dst, const void *src, const char *node) } err = fdtdec_set_carveout(dst, node, "memory-region", 0, &fb, - "framebuffer", NULL, 0); + "framebuffer", NULL, 0, 0); if (err < 0) { printf("failed to set carveout for %s: %d\n", node, err); return err; |