]> err.no Git - linux-2.6/commitdiff
[POWERPC] Create common fsl pci/e files based on 86xx platforms
authorRoy Zang <tie-fei.zang@freescale.com>
Tue, 10 Jul 2007 10:44:34 +0000 (18:44 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 23 Jul 2007 15:27:07 +0000 (10:27 -0500)
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 still works for 86xx platforms.

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/Kconfig
arch/powerpc/platforms/86xx/Kconfig
arch/powerpc/platforms/86xx/Makefile
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/fsl_pci.c [moved from arch/powerpc/platforms/86xx/pci.c with 99% similarity]
arch/powerpc/sysdev/fsl_pci.h [moved from arch/powerpc/sysdev/fsl_pcie.h with 100% similarity]

index 853c282da22eadb59032f50983295d48f28f90e0..3ff90f096bff337e88d2485d95854ec5740aaaf7 100644 (file)
@@ -425,6 +425,10 @@ config SBUS
 config FSL_SOC
        bool
 
+config FSL_PCI
+       bool
+       select PPC_INDIRECT_PCI
+
 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
 config MCA
        bool
index 0faebfdc1596978fc55e7e565288fbadf767ed34..d1c8115200bc203d4f110024ca62e0bc805df79b 100644 (file)
@@ -14,8 +14,8 @@ endchoice
 
 config MPC8641
        bool
-       select PPC_INDIRECT_PCI
-       select PPC_INDIRECT_PCI_BE
+       select PPC_INDIRECT_PCI_BE if PCI
+       select FSL_PCI if PCI
        select PPC_UDBG_16550
        select MPIC
        default y if MPC8641_HPCN
index 418fd8f4d26805b37e05ecd02d70f10eb03d5764..3376c7767f2d128510708996acb050241b86e596 100644 (file)
@@ -4,4 +4,3 @@
 
 obj-$(CONFIG_SMP)              += mpc86xx_smp.o
 obj-$(CONFIG_MPC8641_HPCN)     += mpc86xx_hpcn.o
-obj-$(CONFIG_PCI)              += pci.o
index 484eb4e0e9dbd16c86cf39024ef052c10b785fed..08ce31e612c202c13d20c6820774df7d4cbe53c4 100644 (file)
@@ -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
similarity index 99%
rename from arch/powerpc/platforms/86xx/pci.c
rename to arch/powerpc/sysdev/fsl_pci.c
index 73cd5b05a84eb49b92270fbeaa71168671fc64fa..24ba1b6b31fb0e132c1129e8a9694fbd60cf1b13 100644 (file)
@@ -24,9 +24,9 @@
 #include <asm/prom.h>
 #include <asm/pci-bridge.h>
 #include <sysdev/fsl_soc.h>
-#include <sysdev/fsl_pcie.h>
+#include <sysdev/fsl_pci.h>
 
-#include "mpc86xx.h"
+#include "../platforms/86xx/mpc86xx.h"
 
 #undef DEBUG