diff options
author | Masahiro Yamada | 2017-08-26 01:12:30 +0900 |
---|---|---|
committer | Masahiro Yamada | 2017-08-29 23:56:17 +0900 |
commit | 7b8b47bd29c0d26c59e855164d23759fd1f89fc4 (patch) | |
tree | 9b1ac4d2f29914b2b6202f6b476b801d106fa2d1 /include/dm/ofnode.h | |
parent | 8b3cec7da18645eda7f7cd0b65ee9f2dac573409 (diff) |
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>
Diffstat (limited to 'include/dm/ofnode.h')
-rw-r--r-- | include/dm/ofnode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 210ddb2e5d7..de2769ed537 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -625,5 +625,7 @@ int ofnode_read_simple_size_cells(ofnode node); bool ofnode_pre_reloc(ofnode node); int ofnode_read_resource(ofnode node, uint index, struct resource *res); +int ofnode_read_resource_byname(ofnode node, const char *name, + struct resource *res); #endif |