[U-Boot] [PATCH v2 05/10] fdt: Added helper to set PCI dma-ranges property

Jerry Van Baren gerald.vanbaren at ge.com
Thu Oct 23 15:11:23 CEST 2008


Kumar Gala wrote:
> 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 at kernel.crashing.org>
> ---
> 
> move to using fdt_getprop_u32_default
> 
> - k
> 
>  common/fdt_support.c  |   69 +++++++++++++++++++++++++++++++++++++++++++++++++
>  include/fdt_support.h |    5 +++
>  2 files changed, 74 insertions(+), 0 deletions(-)
> 
> diff --git a/common/fdt_support.c b/common/fdt_support.c
> index f430777..d483d66 100644
> --- a/common/fdt_support.c
> +++ b/common/fdt_support.c

[snip]

> 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

[snip]

I'm not really authoritative on the PCI changes, but it looks good to me 
so I'm OK with adding this to fdt_support.[ch].

Acked-by: Gerald Van Baren <vanbaren at cideas.com>

Thanks,
gvb



More information about the U-Boot mailing list