]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add an ofnode function to obtain the flat tree
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:20 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 30 Sep 2022 02:43:43 +0000 (22:43 -0400)
commit69ddac8a60e5a9c16f0536c4017929cc7983c3f7
tree2225917b6f2ec9a504152470753b1deb81ef72e6
parentf21aa9f51d039aa45860c5ba08a0d46a10e0f360
dm: core: Add an ofnode function to obtain the flat tree

The flat device tree is assumed to be the control FDT but this is not
always the case. Update the ofnode implementation to obtain the node via
an function call so we can eventually add support for selecting different
trees.

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