core: add ofnode_get_by_phandle() api
authorKever Yang <kever.yang@rock-chips.com>
Fri, 23 Feb 2018 16:38:50 +0000 (17:38 +0100)
committerAnatolij Gustschin <agust@denx.de>
Fri, 23 Feb 2018 19:48:09 +0000 (20:48 +0100)
commitb4f20767b12a5718ed8549aece73d405c6cac800
tree2e3374f58faf55f5389b6398116bef8dad0c3079
parente2d5997ffdf5cbf4f7d53584dab2ffc673f50987
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 <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/core/ofnode.c
include/dm/ofnode.h