diff options
author | Thierry Reding <treding@nvidia.com> | 2021-09-03 16:16:18 +0300 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2021-10-14 00:18:30 +0300 |
commit | 4bf88ba76abb224b3ca258a2f502384ec6c86bd6 (patch) | |
tree | 74ac3ca45b7a69addd61faf887b20a175e92aa16 /lib/fdtdec_test.c | |
parent | d5598cfa9bcab50812b2b416af91c2a37be67531 (diff) | |
download | u-boot-4bf88ba76abb224b3ca258a2f502384ec6c86bd6.tar.xz |
fdtdec: Support retrieving the name of a carveout
When retrieving a given carveout for a device, allow callers to query
the name. This helps differentiating between carveouts when there are
more than one.
This is also useful when copying carveouts to help assign a meaningful
name that cannot always be guessed.
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 'lib/fdtdec_test.c')
-rw-r--r-- | lib/fdtdec_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fdtdec_test.c b/lib/fdtdec_test.c index e0c6e0971c..760aca2669 100644 --- a/lib/fdtdec_test.c +++ b/lib/fdtdec_test.c @@ -214,7 +214,8 @@ static int check_fdt_carveout(void *fdt, uint32_t address_cells, printf("carveout: %pap-%pap na=%u ns=%u: ", &expected.start, &expected.end, address_cells, size_cells); - CHECK(fdtdec_get_carveout(fdt, name, "memory-region", 0, &carveout)); + CHECK(fdtdec_get_carveout(fdt, name, "memory-region", 0, &carveout, + NULL)); if ((carveout.start != expected.start) || (carveout.end != expected.end)) { |