]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add definitions for multiple ofnode trees
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:25 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 30 Sep 2022 02:43:43 +0000 (22:43 -0400)
commit2cbb43acca23707f9b664c474edca6623f438b74
treeb13489945c63cc85fbeb5ca03382524eeed8e8af
parentd8abb40f422159c39a894d916eb439a4ab610769
dm: core: Add definitions for multiple ofnode trees

At present, unless OF_LIVE is enabled, ofnode only supports access to one
device tree, the control FDT. This is because only the node offset is
encoded in ofnode, with the tree being implicit.

This makes ofnode (without OF_LIVE) unsuitable for device tree fixups, as
implemented by ft_board_setup() and other such functions.

To solve this, we can use the top bits of the node offset to hold a tree
ID.

Add the definitions for this.

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