diff options
author | Thierry Reding <treding@nvidia.com> | 2021-09-03 15:16:19 +0200 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2021-10-13 14:18:30 -0700 |
commit | 46cb067803bef50cb8a1334a56897d05b5f85e02 (patch) | |
tree | faafb8dd57963a9cb6359ccd7cd9f2beee04af84 /arch/riscv/lib | |
parent | 4bf88ba76abb224b3ca258a2f502384ec6c86bd6 (diff) | |
download | u-boot-46cb067803bef50cb8a1334a56897d05b5f85e02.zip u-boot-46cb067803bef50cb8a1334a56897d05b5f85e02.tar.gz u-boot-46cb067803bef50cb8a1334a56897d05b5f85e02.tar.bz2 |
fdtdec: Support compatible string list for reserved memory
Reserved memory nodes can have a compatible string list to identify the
type of reserved memory that they represent. Support specifying an
optional compatible string list when creating these nodes.
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 'arch/riscv/lib')
-rw-r--r-- | arch/riscv/lib/fdt_fixup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/lib/fdt_fixup.c b/arch/riscv/lib/fdt_fixup.c index 61cf893..7ac30a4 100644 --- a/arch/riscv/lib/fdt_fixup.c +++ b/arch/riscv/lib/fdt_fixup.c @@ -75,7 +75,7 @@ int riscv_fdt_copy_resv_mem_node(const void *src, void *dst) pmp_mem.start = addr; pmp_mem.end = addr + size - 1; err = fdtdec_add_reserved_memory(dst, basename, &pmp_mem, - &phandle, false); + NULL, 0, &phandle, false); if (err < 0 && err != -FDT_ERR_EXISTS) { log_err("failed to add reserved memory: %d\n", err); return err; |