diff options
author | Mario Six <mario.six@gdsys.cc> | 2018-01-15 11:07:19 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-01-21 10:01:02 -0700 |
commit | 147c6074482ed57fe43348ce15fc3dbc3e2c9db7 (patch) | |
tree | ab32fdb8846cab9098f4ff5f0d7118980bac83c4 /drivers/core/read.c | |
parent | 83a462a5e3560800b3cdfd7253d2de7791968331 (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.c | 5 |
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); +} |