diff options
Diffstat (limited to 'include/dm/ofnode.h')
-rw-r--r-- | include/dm/ofnode.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index c359a60f95..0d008404f9 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -302,6 +302,14 @@ ofnode ofnode_first_subnode(ofnode node); ofnode ofnode_next_subnode(ofnode node); /** + * ofnode_get_parent() - get the ofnode's parent (enclosing ofnode) + * + * @node: valid node to look up + * @return ofnode reference of the parent node + */ +ofnode ofnode_get_parent(ofnode node); + +/** * ofnode_get_name() - get the name of a node * * @node: valid node to look up @@ -310,6 +318,14 @@ ofnode ofnode_next_subnode(ofnode node); const char *ofnode_get_name(ofnode node); /** + * ofnode_get_by_phandle() - get ofnode from phandle + * + * @phandle: phandle to look up + * @return ofnode reference to the phandle + */ +ofnode ofnode_get_by_phandle(uint phandle); + +/** * ofnode_read_size() - read the size of a property * * @node: node to check |