]> git.dujemihanovic.xyz Git - u-boot.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)
commita3f50d038695887808497c1a15c9fcc122d964e6
tree2225917b6f2ec9a504152470753b1deb81ef72e6
parentee88ba71acce3455aadef18c725de715e6c9af21
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