diff options
| author | Kever Yang <[email protected]> | 2018-02-23 17:38:50 +0100 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2018-02-23 20:48:09 +0100 |
| commit | b4f20767b12a5718ed8549aece73d405c6cac800 (patch) | |
| tree | 2e3374f58faf55f5389b6398116bef8dad0c3079 /include | |
| parent | e2d5997ffdf5cbf4f7d53584dab2ffc673f50987 (diff) | |
core: add ofnode_get_by_phandle() api
We need to get ofnode from a phandle, add interface to support
both live dt and fdt.
Signed-off-by: Kever Yang <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
Tested-by: Klaus Goger <[email protected]>
Signed-off-by: Philipp Tomsich <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/dm/ofnode.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 6938e62993e..0d008404f90 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -318,6 +318,14 @@ ofnode ofnode_get_parent(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 |
