summaryrefslogtreecommitdiff
path: root/drivers/core/read.c
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2018-01-15 11:07:19 +0100
committerSimon Glass <sjg@chromium.org>2018-01-21 10:01:02 -0700
commit147c6074482ed57fe43348ce15fc3dbc3e2c9db7 (patch)
treeab32fdb8846cab9098f4ff5f0d7118980bac83c4 /drivers/core/read.c
parent83a462a5e3560800b3cdfd7253d2de7791968331 (diff)
core: Add {ofnode, dev}_translate_address functions
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'drivers/core/read.c')
-rw-r--r--drivers/core/read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c
index aba8747708..ce33ecdadd 100644
--- a/drivers/core/read.c
+++ b/drivers/core/read.c
@@ -195,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);
+}