[U-Boot] [PATCH 1/2] ofnode: add {ofnode, dev}_read_resource_byname()

Simon Glass sjg at chromium.org
Sun Aug 27 20:10:12 UTC 2017


On 25 August 2017 at 10:12, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> Linux supports platform_get_resource_byname() to look up a resource
> by name.
>
> We want a similar helper.  It is useful when a device node has two
> or more named register regions.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
>  drivers/core/ofnode.c | 12 ++++++++++++
>  drivers/core/read.c   |  6 ++++++
>  include/dm/ofnode.h   |  2 ++
>  include/dm/read.h     | 20 +++++++++++++++++++-
>  4 files changed, 39 insertions(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list