summaryrefslogtreecommitdiff
path: root/src/southbridge/broadcom
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-05-03 18:13:53 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-06-04 11:22:57 +0000
commit6702b68a7966d584e310bf7a99f4a1dc57f2f56f (patch)
treeb04b8d7a658d79e4c0c07575eac9c26c36c51962 /src/southbridge/broadcom
parent73eaec81689662cf5c1cd6ac5de1152e19b0c14d (diff)
downloadcoreboot-6702b68a7966d584e310bf7a99f4a1dc57f2f56f.tar.xz
device_tree: Add phandle caching and lookups
This patch caches phandles when unflattening the device tree, so we don't have to look up the phandle property again every time we're trying to find the phandle of a node. This is especially important when supporting phandle lookups, which are also added. In addition we keep track of the highest phandle in the whole tree, which will be important for applying overlays later. With this, dt_get_phandle(node) becomes obsolete because the phandle is already available as a member variable in the node. This patch was adapted from depthcharge's http://crosreview.com/1536385 Change-Id: I9cbd67d1d13e57c25d068b3db18bb75c709d7ebe Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32863 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/broadcom')
0 files changed, 0 insertions, 0 deletions