From a0342c0804251c84a7ec1a2c78ea3bb30b5b5058 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 16 Jun 2010 14:27:38 -0500 Subject: fdt: Add fdt_translate_address to convert reg node to cpu phys addr This code is extracted out of the Linux Kernel code from arch/powerpc/kernel/prom_parse.c. We maintain some of the same structure to support multiple bus types even though we only have one in the current code. In the future we might want to translate across a PCI bus and thus it will be easier to add that functionality back in. Signed-off-by: Kumar Gala Acked-by: Gerald Van Baren --- include/fdt_support.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fdt_support.h') diff --git a/include/fdt_support.h b/include/fdt_support.h index fc16159eb2..78c38b2963 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -83,6 +83,7 @@ int fdt_fixup_nor_flash_size(void *blob, int cs, u32 size); void fdt_fixup_mtdparts(void *fdt, void *node_info, int node_info_size); void fdt_del_node_and_alias(void *blob, const char *alias); +u64 fdt_translate_address(void *blob, int node_offset, const u32 *in_addr); #endif /* ifdef CONFIG_OF_LIBFDT */ #endif /* ifndef __FDT_SUPPORT_H */ -- cgit v1.2.1