aboutsummaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass2022-09-06 20:27:19 -0600
committerTom Rini2022-09-29 22:43:43 -0400
commitee88ba71acce3455aadef18c725de715e6c9af21 (patch)
tree4c890e0501c5fdba9acf6a28407879ebc1dc659b /include/dm
parent66d0d0c188db9e816c5b18e8823a8d8bf5e9cd63 (diff)
dm: core: Provide a way to reset the device tree
At present there is only one device tree used by the ofnode functions, except for some esoteric use of live tree. In preparation for supporting more than one, add a way to reset the list of device trees. For now this does nothing. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/ofnode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index 8b0a1087062..7e9d3be96a2 100644
--- a/include/dm/ofnode.h
+++ b/include/dm/ofnode.h
@@ -28,6 +28,14 @@ struct ofnode_phandle_args {
};
/**
+ * oftree_reset() - reset the state of the oftree list
+ *
+ * Reset the oftree list so it can be started again. This should be called
+ * once the control FDT is in place, but before the ofnode interface is used.
+ */
+static inline void oftree_reset(void) {}
+
+/**
* ofnode_to_np() - convert an ofnode to a live DT node pointer
*
* This cannot be called if the reference contains an offset.