From: Andy Fleming Date: Wed, 13 Sep 2006 15:33:56 +0000 (-0500) Subject: Added code to support 2.6.18 PCI changes in u-boot X-Git-Tag: U-Boot-1_1_6~20^2~1^2~21^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=084d648b109c8984f83674043c1a7fa3885ef801;p=oweals%2Fu-boot.git Added code to support 2.6.18 PCI changes in u-boot * Added code to swizzle the IRQ map for the PCI --- diff --git a/board/cds/common/ft_board.c b/board/cds/common/ft_board.c index 77d1d851d9..a897d045a0 100644 --- a/board/cds/common/ft_board.c +++ b/board/cds/common/ft_board.c @@ -24,9 +24,35 @@ #if defined(CONFIG_OF_FLAT_TREE) #include +#include "cadmus.h" + extern void ft_cpu_setup(void *blob, bd_t *bd); -#endif +static void cds_pci_fixup(void *blob) +{ + int len; + u32 *map; + int slot; + int i; + + map = ft_get_prop(blob, "/" OF_SOC "/pci@8000/interrupt-map", &len); + + len /= sizeof(u32); + + slot = get_pci_slot(); + + for (i=0;ibi_memstart); *p = cpu_to_be32(bd->bi_memsize); } + + cds_pci_fixup(blob); } #endif