diff options
author | Tom Rini <trini@konsulko.com> | 2018-01-21 20:13:29 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-21 20:13:29 -0500 |
commit | 485c13c7536731991c59f7b3432bc33c9dafb0f0 (patch) | |
tree | 7e7c719d8c0cfd73869bc170ccfec5a39a249b3b /drivers/core/read.c | |
parent | 557767ed29968af0294e3aae48433e5d5a298e0b (diff) | |
parent | b79221a7d9132fd7bfd81cad9ebdc37acb39f69e (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/core/read.c')
-rw-r--r-- | drivers/core/read.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c index f346cc1eb6..ce33ecdadd 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -66,7 +66,7 @@ void *dev_read_addr_ptr(struct udevice *dev) } fdt_addr_t dev_read_addr_size(struct udevice *dev, const char *property, - fdt_size_t *sizep) + fdt_size_t *sizep) { return ofnode_get_addr_size(dev_ofnode(dev), property, sizep); } @@ -77,7 +77,7 @@ const char *dev_read_name(struct udevice *dev) } int dev_read_stringlist_search(struct udevice *dev, const char *property, - const char *string) + const char *string) { return ofnode_stringlist_search(dev_ofnode(dev), property, string); } @@ -94,9 +94,8 @@ int dev_read_string_count(struct udevice *dev, const char *propname) } int dev_read_phandle_with_args(struct udevice *dev, const char *list_name, - const char *cells_name, int cell_count, - int index, - struct ofnode_phandle_args *out_args) + const char *cells_name, int cell_count, + int index, struct ofnode_phandle_args *out_args) { return ofnode_parse_phandle_with_args(dev_ofnode(dev), list_name, cells_name, cell_count, index, @@ -196,3 +195,8 @@ int dev_read_resource_byname(struct udevice *dev, const char *name, { return ofnode_read_resource_byname(dev_ofnode(dev), name, res); } + +u64 dev_translate_address(struct udevice *dev, const fdt32_t *in_addr) +{ + return ofnode_translate_address(dev_ofnode(dev), in_addr); +} |