[U-Boot] [PATCH] ppc/8xxx: Refactor code to determine if PCI is enabled & agent/host
Kumar Gala
galak at kernel.crashing.org
Sat Sep 5 20:04:34 CEST 2009
On Sep 2, 2009, at 4:40 PM, Kumar Gala wrote:
> Refactor the code into a simple bitmask lookup table that determines
> if
> a given PCI controller is enabled and if its in host/root-complex or
> agent/end-point mode.
>
> Each processor in the PQ3/MPC86xx family specified different encodings
> for the cfg_host_agt[] and cfg_IO_ports[] boot strapping signals.
>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
> board/atum8548/atum8548.c | 6 +-
> board/freescale/mpc8536ds/mpc8536ds.c | 15 +-
> board/freescale/mpc8544ds/mpc8544ds.c | 14 +-
> board/freescale/mpc8548cds/mpc8548cds.c | 6 +-
> board/freescale/mpc8568mds/mpc8568mds.c | 4 +-
> board/freescale/mpc8569mds/mpc8569mds.c | 4 +-
> board/freescale/mpc8572ds/mpc8572ds.c | 17 +--
> board/freescale/mpc8610hpcd/mpc8610hpcd.c | 12 +-
> board/freescale/mpc8641hpcn/mpc8641hpcn.c | 5 +-
> board/freescale/p1_p2_rdb/pci.c | 10 +-
> board/freescale/p2020ds/p2020ds.c | 14 +-
> board/sbc8548/sbc8548.c | 6 +-
> board/tqc/tqm85xx/tqm85xx.c | 8 +-
> cpu/mpc8xxx/Makefile | 1 +
> cpu/mpc8xxx/pci_cfg.c | 225 ++++++++++++++++++++
> +++++++++
> include/asm-ppc/fsl_pci.h | 5 +
> 16 files changed, 284 insertions(+), 68 deletions(-)
> create mode 100644 cpu/mpc8xxx/pci_cfg.c
applied to 85xx
- k
More information about the U-Boot
mailing list