powerpc: 4xx PLB to PCI-X support
PATCH 9/14 powerpc: 4xx PLB to PCI-X support
This adds base support code for the 4xx PCI-X bridge. It also provides placeholders for the PCI and PCI-E version but they aren't supported with this patch.
The bridges are configured based on device-tree properties.
Signed-off-by Benjamin Herrenschmidt <[email protected]>
---
Tested on 440GP only so far.
arch/powerpc/sysdev/Makefile | 4 arch/powerpc/sysdev/ppc4xx_pci.c | 313 +++++++++++++++++++++++++++++++++++++++ arch/powerpc/sysdev/ppc4xx_pci.h | 106 +++++++++++++ include/asm-powerpc/pci-bridge.h | 3 4 files changed, 426 insertions(+)
arch/powerpc/sysdev/Makefile +4 -0
@@ -29,6 +29,10 @@ obj-$(CONFIG_4xx) += uic.o obj-$(CONFIG_XILINX_VIRTEX) += xilinx_intc.o endif +ifeq ($(CONFIG_PCI),y) +obj-$(CONFIG_4xx) += ppc4xx_pci.o +endif + # Temporary hack until we have migrated to asm-powerpc ifeq ($(ARCH),powerpc) obj-$(CONFIG_CPM) += cpm_common.o
arch/powerpc/sysdev/ppc4xx_pci.c new file +313 -0
313 lines not on this page · raw message
arch/powerpc/sysdev/ppc4xx_pci.h new file +106 -0
106 lines not on this page · raw message
include/asm-powerpc/pci-bridge.h +3 -0
@@ -290,6 +290,7 @@ extern void pcibios_free_controller(stru#ifdef CONFIG_PCI extern unsigned long pci_address_to_pio (phys_addr_t address);extern int pcibios_vaddr_is_ioport (void __iomem *address); +extern void ppc4xx_pci_find_bridges (void );#else static inline unsigned long pci_address_to_pio (phys_addr_t address) {
@@ -299,6 +300,8 @@ static inline int pcibios_vaddr_is_iopor {return 0 ; } +static inline void ppc4xx_pci_find_bridges (void ) { } +#endif