fdtdec: Support retrieving the name of a carveout
authorThierry Reding <treding@nvidia.com>
Fri, 3 Sep 2021 13:16:18 +0000 (15:16 +0200)
committerTom Warren <twarren@nvidia.com>
Wed, 13 Oct 2021 21:18:30 +0000 (14:18 -0700)
commit4bf88ba76abb224b3ca258a2f502384ec6c86bd6
tree74ac3ca45b7a69addd61faf887b20a175e92aa16
parentd5598cfa9bcab50812b2b416af91c2a37be67531
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>
board/nvidia/p2371-2180/p2371-2180.c
board/nvidia/p2771-0000/p2771-0000.c
board/nvidia/p3450-0000/p3450-0000.c
include/fdtdec.h
lib/fdtdec.c
lib/fdtdec_test.c