mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
d5598cfa9b
commit
4bf88ba76a
6 changed files with 18 additions and 11 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue