dm: core: Add a way to look up a phandle in an oftree
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:22 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 30 Sep 2022 02:43:43 +0000 (22:43 -0400)
commit928d267aeea9406497c8060c03d3a0a78a8cbaa9
tree443df55e9b11f345966d076f6877e4f7ddcbc7dd
parent085d59411ca7cde4ca5c70beeab4fdcea209aed6
dm: core: Add a way to look up a phandle in an oftree

When we have multiple trees, the ofnode logic needs to be told which one
to use. Create a new function which takes an oftree argument, along with
a helper to obtain the FDT pointer from an oftree.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/ofnode.c