summaryrefslogtreecommitdiff
path: root/include/dm/ofnode.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-09-18 20:42:37 -0400
committerTom Rini <trini@konsulko.com>2018-09-18 20:42:37 -0400
commit4e710ebb4463c8e031eb269c012fbadb2479608b (patch)
treef334518436bc0262b483308026fbba413a45493e /include/dm/ofnode.h
parentb57f1895b669e3fbdca486e7c40dfea00f22bb93 (diff)
parent75629a25087cd9897305375421abe2248bc40e72 (diff)
Merge git://git.denx.de/u-boot-dm
- MPC83xx device tree additions (CPU and RAM) - Fix sandbox build error - Sync bitrev with Linux - Various ofnode/DT improvements
Diffstat (limited to 'include/dm/ofnode.h')
-rw-r--r--include/dm/ofnode.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index ab36b74c4ca..c06d77849c7 100644
--- a/include/dm/ofnode.h
+++ b/include/dm/ofnode.h
@@ -703,6 +703,20 @@ int ofnode_read_resource_byname(ofnode node, const char *name,
ofnode ofnode_by_compatible(ofnode from, const char *compat);
/**
+ * ofnode_by_prop_value() - Find the next node with given property value
+ *
+ * Find the next node after @from that has a @propname with a value
+ * @propval and a length @proplen.
+ *
+ * @from: ofnode to start from (use ofnode_null() to start at the
+ * beginning) @propname: property name to check @propval: property value to
+ * search for @proplen: length of the value in propval @return ofnode
+ * found, or ofnode_null() if none
+ */
+ofnode ofnode_by_prop_value(ofnode from, const char *propname,
+ const void *propval, int proplen);
+
+/**
* ofnode_for_each_subnode() - iterate over all subnodes of a parent
*
* @node: child node (ofnode, lvalue)