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 /include/dm/ofnode.h | |
parent | 557767ed29968af0294e3aae48433e5d5a298e0b (diff) | |
parent | b79221a7d9132fd7bfd81cad9ebdc37acb39f69e (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'include/dm/ofnode.h')
-rw-r--r-- | include/dm/ofnode.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 8b9932a569c..c359a60f953 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -652,4 +652,17 @@ int ofnode_read_resource_byname(ofnode node, const char *name, ofnode_valid(node); \ node = ofnode_next_subnode(node)) +/** + * ofnode_translate_address() - Tranlate a device-tree address + * + * Translate an address from the device-tree into a CPU physical address. This + * function walks up the tree and applies the various bus mappings along the + * way. + * + * @ofnode: Device tree node giving the context in which to translate the + * address + * @in_addr: pointer to the address to translate + * @return the translated address; OF_BAD_ADDR on error + */ +u64 ofnode_translate_address(ofnode node, const fdt32_t *in_addr); #endif |