]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitfaf1c837613a72bf6f3b271e87761d5d423f1424
tree443df55e9b11f345966d076f6877e4f7ddcbc7dd
parent181effbe7b01ca59c68c8c93c2aa1e707224d909
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