aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorRoy Zang <tie-fei.zang@freescale.com>2007-07-10 06:44:34 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-07-23 11:27:07 -0400
commit55c44991e2910519bab274c857d95a08100ff5f7 (patch)
tree6da0c59c1c45181d8321c7498f63ccb6ef32b1c6 /arch/powerpc
parentf695baf2df9e0413d3521661070103711545207a (diff)
[POWERPC] Create common fsl pci/e files based on 86xx platforms
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/Kconfig4
-rw-r--r--arch/powerpc/platforms/86xx/Kconfig4
-rw-r--r--arch/powerpc/platforms/86xx/Makefile1
-rw-r--r--arch/powerpc/sysdev/Makefile1
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c (renamed from arch/powerpc/platforms/86xx/pci.c)4
-rw-r--r--arch/powerpc/sysdev/fsl_pci.h (renamed from arch/powerpc/sysdev/fsl_pcie.h)0
6 files changed, 9 insertions, 5 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 853c282da22e..3ff90f096bff 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -425,6 +425,10 @@ config SBUS
425config FSL_SOC 425config FSL_SOC
426 bool 426 bool
427 427
428config FSL_PCI
429 bool
430 select PPC_INDIRECT_PCI
431
428# Yes MCA RS/6000s exist but Linux-PPC does not currently support any 432# Yes MCA RS/6000s exist but Linux-PPC does not currently support any
429config MCA 433config MCA
430 bool 434 bool
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig
index 0faebfdc1596..d1c8115200bc 100644
--- a/arch/powerpc/platforms/86xx/Kconfig
+++ b/arch/powerpc/platforms/86xx/Kconfig
@@ -14,8 +14,8 @@ endchoice
14 14
15config MPC8641 15config MPC8641
16 bool 16 bool
17 select PPC_INDIRECT_PCI 17 select PPC_INDIRECT_PCI_BE if PCI
18 select PPC_INDIRECT_PCI_BE 18 select FSL_PCI if PCI
19 select PPC_UDBG_16550 19 select PPC_UDBG_16550
20 select MPIC 20 select MPIC
21 default y if MPC8641_HPCN 21 default y if MPC8641_HPCN
diff --git a/arch/powerpc/platforms/86xx/Makefile b/arch/powerpc/platforms/86xx/Makefile
index 418fd8f4d268..3376c7767f2d 100644
--- a/arch/powerpc/platforms/86xx/Makefile
+++ b/arch/powerpc/platforms/86xx/Makefile
@@ -4,4 +4,3 @@
4 4
5obj-$(CONFIG_SMP) += mpc86xx_smp.o 5obj-$(CONFIG_SMP) += mpc86xx_smp.o
6obj-$(CONFIG_MPC8641_HPCN) += mpc86xx_hpcn.o 6obj-$(CONFIG_MPC8641_HPCN) += mpc86xx_hpcn.o
7obj-$(CONFIG_PCI) += pci.o
diff --git a/arch/powerpc/sysdev/Makefile b/arch/powerpc/sysdev/Makefile
index 484eb4e0e9db..08ce31e612c2 100644
--- a/arch/powerpc/sysdev/Makefile
+++ b/arch/powerpc/sysdev/Makefile
@@ -12,6 +12,7 @@ obj-$(CONFIG_PPC_PMI) += pmi.o
12obj-$(CONFIG_U3_DART) += dart_iommu.o 12obj-$(CONFIG_U3_DART) += dart_iommu.o
13obj-$(CONFIG_MMIO_NVRAM) += mmio_nvram.o 13obj-$(CONFIG_MMIO_NVRAM) += mmio_nvram.o
14obj-$(CONFIG_FSL_SOC) += fsl_soc.o 14obj-$(CONFIG_FSL_SOC) += fsl_soc.o
15obj-$(CONFIG_FSL_PCI) += fsl_pci.o
15obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o 16obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o
16obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ 17obj-$(CONFIG_QUICC_ENGINE) += qe_lib/
17mv64x60-$(CONFIG_PCI) += mv64x60_pci.o 18mv64x60-$(CONFIG_PCI) += mv64x60_pci.o
diff --git a/arch/powerpc/platforms/86xx/pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 73cd5b05a84e..24ba1b6b31fb 100644
--- a/arch/powerpc/platforms/86xx/pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -24,9 +24,9 @@
24#include <asm/prom.h> 24#include <asm/prom.h>
25#include <asm/pci-bridge.h> 25#include <asm/pci-bridge.h>
26#include <sysdev/fsl_soc.h> 26#include <sysdev/fsl_soc.h>
27#include <sysdev/fsl_pcie.h> 27#include <sysdev/fsl_pci.h>
28 28
29#include "mpc86xx.h" 29#include "../platforms/86xx/mpc86xx.h"
30 30
31#undef DEBUG 31#undef DEBUG
32 32
diff --git a/arch/powerpc/sysdev/fsl_pcie.h b/arch/powerpc/sysdev/fsl_pci.h
index 8d9779c84bea..8d9779c84bea 100644
--- a/arch/powerpc/sysdev/fsl_pcie.h
+++ b/arch/powerpc/sysdev/fsl_pci.h