فهرست منبع

powerpc/pci: Move IO workarounds to the common kernel dir

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>
Michael Ellerman 14 سال پیش
والد
کامیت
3cc30d0726

+ 0 - 0
arch/powerpc/platforms/cell/io-workarounds.h → arch/powerpc/include/asm/io-workarounds.h


+ 2 - 0
arch/powerpc/kernel/Makefile

@@ -106,6 +106,8 @@ obj-$(CONFIG_KEXEC)		+= machine_kexec.o crash.o \
 obj-$(CONFIG_AUDIT)		+= audit.o
 obj-$(CONFIG_AUDIT)		+= audit.o
 obj64-$(CONFIG_AUDIT)		+= compat_audit.o
 obj64-$(CONFIG_AUDIT)		+= compat_audit.o
 
 
+obj-$(CONFIG_PPC_IO_WORKAROUNDS)	+= io-workarounds.o
+
 obj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o
 obj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o
 obj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o
 obj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o
 obj-$(CONFIG_PERF_EVENTS)	+= perf_callchain.o
 obj-$(CONFIG_PERF_EVENTS)	+= perf_callchain.o

+ 1 - 2
arch/powerpc/platforms/cell/io-workarounds.c → arch/powerpc/kernel/io-workarounds.c

@@ -17,8 +17,7 @@
 #include <asm/machdep.h>
 #include <asm/machdep.h>
 #include <asm/pgtable.h>
 #include <asm/pgtable.h>
 #include <asm/ppc-pci.h>
 #include <asm/ppc-pci.h>
-
-#include "io-workarounds.h"
+#include <asm/io-workarounds.h>
 
 
 #define IOWA_MAX_BUS	8
 #define IOWA_MAX_BUS	8
 
 

+ 3 - 0
arch/powerpc/platforms/Kconfig

@@ -163,6 +163,9 @@ config PPC_INDIRECT_MMIO
 	bool
 	bool
 	select PPC_INDIRECT_IO
 	select PPC_INDIRECT_IO
 
 
+config PPC_IO_WORKAROUNDS
+	bool
+
 config GENERIC_IOMAP
 config GENERIC_IOMAP
 	bool
 	bool
 
 

+ 1 - 0
arch/powerpc/platforms/cell/Kconfig

@@ -16,6 +16,7 @@ config PPC_CELL_NATIVE
 	bool
 	bool
 	select PPC_CELL_COMMON
 	select PPC_CELL_COMMON
 	select MPIC
 	select MPIC
+	select PPC_IO_WORKAROUNDS
 	select IBM_NEW_EMAC_EMAC4
 	select IBM_NEW_EMAC_EMAC4
 	select IBM_NEW_EMAC_RGMII
 	select IBM_NEW_EMAC_RGMII
 	select IBM_NEW_EMAC_ZMII #test only
 	select IBM_NEW_EMAC_ZMII #test only

+ 4 - 4
arch/powerpc/platforms/cell/Makefile

@@ -1,7 +1,7 @@
 obj-$(CONFIG_PPC_CELL_COMMON)		+= cbe_regs.o interrupt.o pervasive.o
 obj-$(CONFIG_PPC_CELL_COMMON)		+= cbe_regs.o interrupt.o pervasive.o
 
 
 obj-$(CONFIG_PPC_CELL_NATIVE)		+= iommu.o setup.o spider-pic.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_RAS)			+= ras.o
 
 
 obj-$(CONFIG_CBE_THERM)			+= cbe_thermal.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_pci.o celleb_scc_epci.o \
 					   celleb_scc_pciex.o \
 					   celleb_scc_pciex.o \
 					   celleb_scc_uhc.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_SMP)			+= beat_smp.o
 obj-$(CONFIG_PPC_UDBG_BEAT)		+= beat_udbg.o
 obj-$(CONFIG_PPC_UDBG_BEAT)		+= beat_udbg.o

+ 0 - 1
arch/powerpc/platforms/cell/celleb_pci.c

@@ -41,7 +41,6 @@
 #include <asm/pci-bridge.h>
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
 #include <asm/ppc-pci.h>
 
 
-#include "io-workarounds.h"
 #include "celleb_pci.h"
 #include "celleb_pci.h"
 
 
 #define MAX_PCI_DEVICES    32
 #define MAX_PCI_DEVICES    32

+ 2 - 1
arch/powerpc/platforms/cell/celleb_pci.h

@@ -26,8 +26,9 @@
 #include <asm/pci-bridge.h>
 #include <asm/pci-bridge.h>
 #include <asm/prom.h>
 #include <asm/prom.h>
 #include <asm/ppc-pci.h>
 #include <asm/ppc-pci.h>
+#include <asm/io-workarounds.h>
 
 
-#include "io-workarounds.h"
+struct iowa_bus;
 
 
 struct celleb_phb_spec {
 struct celleb_phb_spec {
 	int (*setup)(struct device_node *, struct pci_controller *);
 	int (*setup)(struct device_node *, struct pci_controller *);

+ 0 - 1
arch/powerpc/platforms/cell/qpace_setup.c

@@ -42,7 +42,6 @@
 #include "interrupt.h"
 #include "interrupt.h"
 #include "pervasive.h"
 #include "pervasive.h"
 #include "ras.h"
 #include "ras.h"
-#include "io-workarounds.h"
 
 
 static void qpace_show_cpuinfo(struct seq_file *m)
 static void qpace_show_cpuinfo(struct seq_file *m)
 {
 {

+ 1 - 1
arch/powerpc/platforms/cell/setup.c

@@ -51,11 +51,11 @@
 #include <asm/udbg.h>
 #include <asm/udbg.h>
 #include <asm/mpic.h>
 #include <asm/mpic.h>
 #include <asm/cell-regs.h>
 #include <asm/cell-regs.h>
+#include <asm/io-workarounds.h>
 
 
 #include "interrupt.h"
 #include "interrupt.h"
 #include "pervasive.h"
 #include "pervasive.h"
 #include "ras.h"
 #include "ras.h"
-#include "io-workarounds.h"
 
 
 #ifdef DEBUG
 #ifdef DEBUG
 #define DBG(fmt...) udbg_printf(fmt)
 #define DBG(fmt...) udbg_printf(fmt)

+ 1 - 2
arch/powerpc/platforms/cell/spider-pci.c

@@ -27,8 +27,7 @@
 
 
 #include <asm/ppc-pci.h>
 #include <asm/ppc-pci.h>
 #include <asm/pci-bridge.h>
 #include <asm/pci-bridge.h>
-
-#include "io-workarounds.h"
+#include <asm/io-workarounds.h>
 
 
 #define SPIDER_PCI_DISABLE_PREFETCH
 #define SPIDER_PCI_DISABLE_PREFETCH