summaryrefslogtreecommitdiff
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-10-22 23:33:56 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-10-24 17:34:57 -0500
commit8ab451c46b846f2bbd7122b29ffdd9a4a04da228 (patch)
tree29bec2994f18f0614506796a42966c74a07fa2d1 /include/fdt_support.h
parent3bed2aaf2d50fd13273c14d17d4fd40ef42e0d0f (diff)
downloadu-boot-imx-8ab451c46b846f2bbd7122b29ffdd9a4a04da228.zip
u-boot-imx-8ab451c46b846f2bbd7122b29ffdd9a4a04da228.tar.gz
u-boot-imx-8ab451c46b846f2bbd7122b29ffdd9a4a04da228.tar.bz2
fdt: Added helper to set PCI dma-ranges property
Added fdt_pci_dma_ranges() that parses the pci_region info from the struct pci_controller and populates the dma-ranges based on it. The max # of windws/dma-ranges we support is 3 since on embedded PowerPC based systems this is the max number of windows. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Andrew Fleming-AFLEMING <afleming@freescale.com>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 816c9d0..6062df9 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -65,6 +65,11 @@ void fdt_fixup_crypto_node(void *blob, int sec_rev);
static inline void fdt_fixup_crypto_node(void *blob, int sec_rev) {}
#endif
+#ifdef CONFIG_PCI
+#include <pci.h>
+int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose);
+#endif
+
#ifdef CONFIG_OF_BOARD_SETUP
void ft_board_setup(void *blob, bd_t *bd);
void ft_cpu_setup(void *blob, bd_t *bd);