summaryrefslogtreecommitdiff
path: root/drivers/core/util.c
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-05-21 19:19:12 +0200
committerSimon Glass <sjg@chromium.org>2019-07-10 16:52:58 -0600
commit6998974926df9b41b299cd9f1aaff37649ca9971 (patch)
tree123e5b6a057dcd5efcd703ae1454737f16904318 /drivers/core/util.c
parent099ed45c6c6e88eb2783589027b610f2b9a2f71f (diff)
fdt: Allow indicating a node is for U-Boot proper only
This add missing parts for previous commit 06f94461a9f4 ("fdt: Allow indicating a node is for U-Boot proper only") At present it is not possible to specify that a node should be used before relocation (in U-Boot proper) without it also ending up in SPL and TPL device trees. Add a new "u-boot,dm-pre-proper" boolean property for this. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/util.c')
-rw-r--r--drivers/core/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/core/util.c b/drivers/core/util.c
index 96e47dc707..60b939a924 100644
--- a/drivers/core/util.c
+++ b/drivers/core/util.c
@@ -42,6 +42,8 @@ bool dm_ofnode_pre_reloc(ofnode node)
#else
if (ofnode_read_bool(node, "u-boot,dm-pre-reloc"))
return true;
+ if (ofnode_read_bool(node, "u-boot,dm-pre-proper"))
+ return true;
/*
* In regular builds individual spl and tpl handling both