]> git.dujemihanovic.xyz Git - u-boot.git/commit
ofnode: add {ofnode, dev}_read_resource_byname()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 25 Aug 2017 16:12:30 +0000 (01:12 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 29 Aug 2017 14:56:17 +0000 (23:56 +0900)
commit7b8b47bd29c0d26c59e855164d23759fd1f89fc4
tree9b1ac4d2f29914b2b6202f6b476b801d106fa2d1
parent8b3cec7da18645eda7f7cd0b65ee9f2dac573409
ofnode: add {ofnode, dev}_read_resource_byname()

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 named
register regions.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
drivers/core/read.c
include/dm/ofnode.h
include/dm/read.h