Skip to contentSkip to conversation

Create common fsl pci/e files based on 86xx platform

PATCH In review Zang Roy-r61911 1 participant 1 message Jul 10, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 Create common fsl pci/e files based on 86xx platform

From: Roy Zang <[email protected]>

Move
arch/powerpc/platforms/86xx/pci.c -> arch/powerpc/sysdev/fsl_pci.c arch/powerpc/sysdev/fsl_pcie.h -> arch/powerpc/sysdev/fsl_pci.h as the base to unify 83xx/85xx/86xx pci and pcie.

Add CONFIG_FSL_PCI to build fsl_pci.c for Freescale pci and pcie option. The code is still work for 86xx platform.

---
 arch/powerpc/Kconfig                 |    4 +
 arch/powerpc/platforms/86xx/Kconfig  |    1 +
 arch/powerpc/platforms/86xx/Makefile |    1 -
 arch/powerpc/platforms/86xx/pci.c    |  238 ----------------------------------
 arch/powerpc/sysdev/Makefile         |    1 +
 arch/powerpc/sysdev/fsl_pci.c        |  238 ++++++++++++++++++++++++++++++++++
 arch/powerpc/sysdev/fsl_pci.h        |   94 +++++++++++++
 arch/powerpc/sysdev/fsl_pcie.h       |   94 -------------
 8 files changed, 338 insertions(+), 333 deletions(-)
 delete mode 100644 arch/powerpc/platforms/86xx/pci.c
 create mode 100644 arch/powerpc/sysdev/fsl_pci.c
 create mode 100644 arch/powerpc/sysdev/fsl_pci.h
 delete mode 100644 arch/powerpc/sysdev/fsl_pcie.h
arch/powerpc/Kconfig +4 -0
index cbfbd98..8c780bf 100644
@@ -419,6 +419,10 @@ config SBUS
 config FSL_SOC
 	bool
 
+config FSL_PCI
+ 	bool
+	depends on PPC_86xx
+
 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
 config MCA
 	bool
arch/powerpc/platforms/86xx/Kconfig +1 -0
index 0faebfd..c848173 100644
@@ -16,6 +16,7 @@ config MPC8641
 	bool
 	select PPC_INDIRECT_PCI
 	select PPC_INDIRECT_PCI_BE
+	select FSL_PCI
 	select PPC_UDBG_16550
 	select MPIC
 	default y if MPC8641_HPCN
arch/powerpc/platforms/86xx/Makefile +0 -1
index 418fd8f..3376c77 100644
@@ -4,4 +4,3 @@
 
 obj-$(CONFIG_SMP)		+= mpc86xx_smp.o
 obj-$(CONFIG_MPC8641_HPCN)	+= mpc86xx_hpcn.o
-obj-$(CONFIG_PCI)		+= pci.o
arch/powerpc/platforms/86xx/pci.c deleted +0 -238

238 lines not on this page · raw message

arch/powerpc/sysdev/Makefile +1 -0
index 7d8ac1b..0a9ae95 100644
@@ -12,6 +12,7 @@ obj-$(CONFIG_PPC_PMI)		+= pmi.o
 obj-$(CONFIG_U3_DART)		+= dart_iommu.o
 obj-$(CONFIG_MMIO_NVRAM)	+= mmio_nvram.o
 obj-$(CONFIG_FSL_SOC)		+= fsl_soc.o
+obj-$(CONFIG_FSL_PCI)		+= fsl_pci.o
 obj-$(CONFIG_TSI108_BRIDGE)	+= tsi108_pci.o tsi108_dev.o
 obj-$(CONFIG_QUICC_ENGINE)	+= qe_lib/
 mv64x60-$(CONFIG_PCI)		+= mv64x60_pci.o
arch/powerpc/sysdev/fsl_pci.c new file +238 -0

238 lines not on this page · raw message

arch/powerpc/sysdev/fsl_pci.h new file +94 -0

94 lines not on this page · raw message

arch/powerpc/sysdev/fsl_pcie.h deleted +0 -94

94 lines not on this page · raw message

Signature · 1 line
1.5.1