diff options
author | Rob Herring <robh@kernel.org> | 2014-03-27 16:37:43 +0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-05-21 00:19:25 +0400 |
commit | e06e8b27082852bdab417af884241a4ed2037c73 (patch) | |
tree | d6ecaef3c196b99f3ca4f4b5fbbe24a3108a1d19 /include/linux/of_fdt.h | |
parent | b0b6abd34c1b508d4ac95dbc614f36c49d29e65a (diff) | |
download | linux-e06e8b27082852bdab417af884241a4ed2037c73.tar.xz |
of/fdt: add FDT address translation support
Copy u-boot's FDT address translation code from common/fdt_support. This
code was originally based on the kernel's unflattened DT address parsing
code.
This commit can be reverted once relicensing of this code to GPLv2/BSD
is done and it is added to libfdt.
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r-- | include/linux/of_fdt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 5c0ab057eecf..05117899fcb4 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -83,6 +83,7 @@ extern void unflatten_device_tree(void); extern void unflatten_and_copy_device_tree(void); extern void early_init_devtree(void *); extern void early_get_first_memblock_info(void *, phys_addr_t *); +extern u64 fdt_translate_address(const void *blob, int node_offset); #else /* CONFIG_OF_FLATTREE */ static inline void early_init_fdt_scan_reserved_mem(void) {} static inline const char *of_flat_dt_get_machine_name(void) { return NULL; } |