]> git.karo-electronics.de Git - linux-beck.git/commitdiff
powerpc/pci: Move IO workarounds to the common kernel dir
authorMichael Ellerman <michael@ozlabs.org>
Mon, 11 Apr 2011 21:25:01 +0000 (21:25 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 27 Apr 2011 04:18:29 +0000 (14:18 +1000)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/io-workarounds.h [moved from arch/powerpc/platforms/cell/io-workarounds.h with 100% similarity]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/io-workarounds.c [moved from arch/powerpc/platforms/cell/io-workarounds.c with 99% similarity]
arch/powerpc/platforms/Kconfig
arch/powerpc/platforms/cell/Kconfig
arch/powerpc/platforms/cell/Makefile
arch/powerpc/platforms/cell/celleb_pci.c
arch/powerpc/platforms/cell/celleb_pci.h
arch/powerpc/platforms/cell/qpace_setup.c
arch/powerpc/platforms/cell/setup.c
arch/powerpc/platforms/cell/spider-pci.c

index 058bc8bac488da151636bea415c9143558a01d05..82e0bed0650df88ac935e27c8df9cb00c99c2e65 100644 (file)
@@ -106,6 +106,8 @@ obj-$(CONFIG_KEXEC)         += machine_kexec.o crash.o \
 obj-$(CONFIG_AUDIT)            += audit.o
 obj64-$(CONFIG_AUDIT)          += compat_audit.o
 
+obj-$(CONFIG_PPC_IO_WORKAROUNDS)       += io-workarounds.o
+
 obj-$(CONFIG_DYNAMIC_FTRACE)   += ftrace.o
 obj-$(CONFIG_FUNCTION_GRAPH_TRACER)    += ftrace.o
 obj-$(CONFIG_PERF_EVENTS)      += perf_callchain.o
similarity index 99%
rename from arch/powerpc/platforms/cell/io-workarounds.c
rename to arch/powerpc/kernel/io-workarounds.c
index 5c1118e31940bf39d3a88926a16fc883c4f30d5f..7e584579878803cdc62ed387495dde02c179e717 100644 (file)
@@ -17,8 +17,7 @@
 #include <asm/machdep.h>
 #include <asm/pgtable.h>
 #include <asm/ppc-pci.h>
-
-#include "io-workarounds.h"
+#include <asm/io-workarounds.h>
 
 #define IOWA_MAX_BUS   8
 
index 54db9fbab1dc3a6c16f936bbe11a9a5cf0058a8f..f2352fc5cbbee7923b10b227f63a0182af5314f6 100644 (file)
@@ -163,6 +163,9 @@ config PPC_INDIRECT_MMIO
        bool
        select PPC_INDIRECT_IO
 
+config PPC_IO_WORKAROUNDS
+       bool
+
 config GENERIC_IOMAP
        bool
 
index 3c7f1de06cdfe1d26579562fc24ec8d67f909e22..67d5009b4e86d51b836d9da2294133716eb40720 100644 (file)
@@ -16,6 +16,7 @@ config PPC_CELL_NATIVE
        bool
        select PPC_CELL_COMMON
        select MPIC
+       select PPC_IO_WORKAROUNDS
        select IBM_NEW_EMAC_EMAC4
        select IBM_NEW_EMAC_RGMII
        select IBM_NEW_EMAC_ZMII #test only
index 83fafe92264143437eac0f9c5be256701658cb5d..8839ef6c71889c230dfc840aae272e325bd43f38 100644 (file)
@@ -1,7 +1,7 @@
 obj-$(CONFIG_PPC_CELL_COMMON)          += cbe_regs.o interrupt.o pervasive.o
 
 obj-$(CONFIG_PPC_CELL_NATIVE)          += iommu.o setup.o spider-pic.o \
-                                          pmu.o io-workarounds.o spider-pci.o
+                                          pmu.o spider-pci.o
 obj-$(CONFIG_CBE_RAS)                  += ras.o
 
 obj-$(CONFIG_CBE_THERM)                        += cbe_thermal.o
@@ -39,9 +39,9 @@ obj-y                                 += celleb_setup.o \
                                           celleb_pci.o celleb_scc_epci.o \
                                           celleb_scc_pciex.o \
                                           celleb_scc_uhc.o \
-                                          io-workarounds.o spider-pci.o \
-                                          beat.o beat_htab.o beat_hvCall.o \
-                                          beat_interrupt.o beat_iommu.o
+                                          spider-pci.o beat.o beat_htab.o \
+                                          beat_hvCall.o beat_interrupt.o \
+                                          beat_iommu.o
 
 obj-$(CONFIG_SMP)                      += beat_smp.o
 obj-$(CONFIG_PPC_UDBG_BEAT)            += beat_udbg.o
index 404d1fc04d59e07d936daafd2f290d7d6d035184..c19b783a7c99d20e7db146c7afa411cc92a25718 100644 (file)
@@ -41,7 +41,6 @@
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
 
-#include "io-workarounds.h"
 #include "celleb_pci.h"
 
 #define MAX_PCI_DEVICES    32
index 4cba1523ec50463116108f6eb8fbe101d5fb4362..a801fcc5f38908b9de50f95f6af34dad9db0c762 100644 (file)
@@ -26,8 +26,9 @@
 #include <asm/pci-bridge.h>
 #include <asm/prom.h>
 #include <asm/ppc-pci.h>
+#include <asm/io-workarounds.h>
 
-#include "io-workarounds.h"
+struct iowa_bus;
 
 struct celleb_phb_spec {
        int (*setup)(struct device_node *, struct pci_controller *);
index d31c594cfdf3ee68d84b7f7fa4603cc8bd7c7ab4..51e290126bc13c3b731734664d079638e9b5fd35 100644 (file)
@@ -42,7 +42,6 @@
 #include "interrupt.h"
 #include "pervasive.h"
 #include "ras.h"
-#include "io-workarounds.h"
 
 static void qpace_show_cpuinfo(struct seq_file *m)
 {
index fd57bfe00edf7f73d53019639b253653bbdfb1de..af7b13cd71107854b0d518652b4b5290b5e41688 100644 (file)
 #include <asm/udbg.h>
 #include <asm/mpic.h>
 #include <asm/cell-regs.h>
+#include <asm/io-workarounds.h>
 
 #include "interrupt.h"
 #include "pervasive.h"
 #include "ras.h"
-#include "io-workarounds.h"
 
 #ifdef DEBUG
 #define DBG(fmt...) udbg_printf(fmt)
index ca7731c0b59518776ada45d17aa7b20f532f8eea..f1f7878893f3c79eb75418148fa57ebc132328f8 100644 (file)
@@ -27,8 +27,7 @@
 
 #include <asm/ppc-pci.h>
 #include <asm/pci-bridge.h>
-
-#include "io-workarounds.h"
+#include <asm/io-workarounds.h>
 
 #define SPIDER_PCI_DISABLE_PREFETCH