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)
commit41b65d68ec324d9c75dcfe6e1b34fef077b4b87a
treeb13489945c63cc85fbeb5ca03382524eeed8e8af
parentb7bd94f1a8a63cd4f947036e0d42ee2e23852d64
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