summaryrefslogtreecommitdiffstats
path: root/dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-18 20:08:53 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:06 -0600
commit5e060d8bcca86dd4b88af607396a96cf6c557ca7 (patch)
tree814096688d9923aa692d70c2211c599931ed6b39 /dts
parentfd7029029f5fd23990fb18c1049167fdcf95104d (diff)
downloadu-boot-5e060d8bcca86dd4b88af607396a96cf6c557ca7.tar.gz
u-boot-5e060d8bcca86dd4b88af607396a96cf6c557ca7.tar.xz
u-boot-5e060d8bcca86dd4b88af607396a96cf6c557ca7.zip
dm: core: Add livetree definitions
Add a Kconfig option to enable a live device tree, built at run time from the flat tree. Also add structure definitions and a root node. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'dts')
-rw-r--r--dts/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/dts/Kconfig b/dts/Kconfig
index 9a0622154a..b3009af03f 100644
--- a/dts/Kconfig
+++ b/dts/Kconfig
@@ -32,6 +32,17 @@ config SPL_OF_CONTROL
which is not enough to support device tree. Enable this option to
allow such boards to be supported by U-Boot SPL.
+config OF_LIVE
+ bool "Enable use of a live tree"
+ depends on OF_CONTROL
+ help
+ Normally U-Boot uses a flat device tree which saves space and
+ avoids the need to unpack the tree before use. However a flat
+ tree does not support modifcation from within U-Boot since it
+ can invalidate driver-model device tree offsets. This option
+ enables a live tree which is available after relocation,
+ and can be adjusted as needed.
+
choice
prompt "Provider of DTB for DT control"
depends on OF_CONTROL