[POWERPC] celleb: Move the files for celleb base support
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Thu, 24 Apr 2008 09:25:16 +0000 (19:25 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Apr 2008 11:08:13 +0000 (21:08 +1000)
This moves the base code for celleb support into platforms/cell/.
All files in this patch are used by celleb-beat and celleb-native
commonly.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/Kconfig
arch/powerpc/platforms/cell/Kconfig
arch/powerpc/platforms/cell/Makefile
arch/powerpc/platforms/cell/celleb_pci.c [moved from arch/powerpc/platforms/celleb/pci.c with 98% similarity]
arch/powerpc/platforms/cell/celleb_pci.h [moved from arch/powerpc/platforms/celleb/pci.h with 97% similarity]
arch/powerpc/platforms/cell/celleb_setup.c [moved from arch/powerpc/platforms/celleb/setup.c with 97% similarity]
arch/powerpc/platforms/celleb/Kconfig [deleted file]
arch/powerpc/platforms/celleb/Makefile
arch/powerpc/platforms/celleb/scc_epci.c

index f38c50b4ce56ab4d609488fcc0644800a3001313..87454c52697326e9173b4f695b46b9e705a77e97 100644 (file)
@@ -45,7 +45,6 @@ source "arch/powerpc/platforms/powermac/Kconfig"
 source "arch/powerpc/platforms/prep/Kconfig"
 source "arch/powerpc/platforms/maple/Kconfig"
 source "arch/powerpc/platforms/pasemi/Kconfig"
-source "arch/powerpc/platforms/celleb/Kconfig"
 source "arch/powerpc/platforms/ps3/Kconfig"
 source "arch/powerpc/platforms/cell/Kconfig"
 source "arch/powerpc/platforms/8xx/Kconfig"
index 2f169991896d9a2d8e33524df82675e2d5e2278b..3959fcfe731c4a99e01ed7a124a067de85bf4e1a 100644 (file)
@@ -25,6 +25,19 @@ config PPC_IBM_CELL_BLADE
        select PPC_UDBG_16550
        select UDBG_RTAS_CONSOLE
 
+config PPC_CELLEB
+       bool "Toshiba's Cell Reference Set 'Celleb' Architecture"
+       depends on PPC_MULTIPLATFORM && PPC64
+       select PPC_CELL
+       select PPC_CELL_NATIVE
+       select PPC_RTAS
+       select PPC_INDIRECT_IO
+       select PPC_OF_PLATFORM_PCI
+       select HAS_TXX9_SERIAL
+       select PPC_UDBG_BEAT
+       select USB_OHCI_BIG_ENDIAN_MMIO
+       select USB_EHCI_BIG_ENDIAN_MMIO
+
 menu "Cell Broadband Engine options"
        depends on PPC_CELL
 
index 81c26f32453e1593f8bf25e1fa3d8329c1567c4d..b644f5717fc21b22cd55a67223636c74d6e27992 100644 (file)
@@ -31,5 +31,7 @@ obj-$(CONFIG_PCI_MSI)                 += axon_msi.o
 
 # celleb stuff
 ifeq ($(CONFIG_PPC_CELLEB),y)
-obj-y                                  += io-workarounds.o spider-pci.o
+obj-y                                  += celleb_setup.o \
+                                          celleb_pci.o \
+                                          io-workarounds.o spider-pci.o
 endif
similarity index 98%
rename from arch/powerpc/platforms/celleb/pci.c
rename to arch/powerpc/platforms/cell/celleb_pci.c
index 539d2cc595428ecdecf34fb76ea582e456e705da..ff25e6088480f270b48294350c2a098f463e3ed7 100644 (file)
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/prom.h>
-#include <asm/machdep.h>
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
 
-#include "../cell/io-workarounds.h"
-#include "pci.h"
-#include "interrupt.h"
+#include "io-workarounds.h"
+#include "celleb_pci.h"
 
 #define MAX_PCI_DEVICES    32
 #define MAX_PCI_FUNCTIONS   8
@@ -191,7 +189,7 @@ static int celleb_fake_pci_read_config(struct pci_bus *bus,
 
 
 static int celleb_fake_pci_write_config(struct pci_bus *bus,
-                unsigned int devfn, int where, int size, u32 val)
+               unsigned int devfn, int where, int size, u32 val)
 {
        char *config;
        struct device_node *node;
similarity index 97%
rename from arch/powerpc/platforms/celleb/pci.h
rename to arch/powerpc/platforms/cell/celleb_pci.h
index cabb3a108c31b18c8925d11ef337fc2c210fbf44..79e59848cb62f0ae44d7357d0fb39034f876720b 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/prom.h>
 #include <asm/ppc-pci.h>
 
-#include "../cell/io-workarounds.h"
+#include "io-workarounds.h"
 
 struct celleb_phb_spec {
        int (*setup)(struct device_node *, struct pci_controller *);
similarity index 97%
rename from arch/powerpc/platforms/celleb/setup.c
rename to arch/powerpc/platforms/cell/celleb_setup.c
index ff8209e61e84334a4545484f3b8c2dd25ce885e9..d0dad24f2de284ad5a63bbaf49ea4d77db7e8bd1 100644 (file)
 #include <asm/rtas.h>
 #include <asm/cell-regs.h>
 
+#include "../celleb/interrupt.h"
+#include "../celleb/beat_wrapper.h"
+#include "../celleb/beat.h"
+#include "celleb_pci.h"
 #include "interrupt.h"
-#include "beat_wrapper.h"
-#include "beat.h"
-#include "pci.h"
-#include "../cell/interrupt.h"
-#include "../cell/pervasive.h"
-#include "../cell/ras.h"
+#include "pervasive.h"
+#include "ras.h"
 
 static char celleb_machine_type[128] = "Celleb";
 
diff --git a/arch/powerpc/platforms/celleb/Kconfig b/arch/powerpc/platforms/celleb/Kconfig
deleted file mode 100644 (file)
index 372891e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-config PPC_CELLEB
-       bool "Toshiba's Cell Reference Set 'Celleb' Architecture"
-       depends on PPC_MULTIPLATFORM && PPC64
-       select PPC_CELL
-       select PPC_CELL_NATIVE
-       select PPC_RTAS
-       select PPC_INDIRECT_IO
-       select PPC_OF_PLATFORM_PCI
-       select HAS_TXX9_SERIAL
-       select PPC_UDBG_BEAT
-       select USB_OHCI_BIG_ENDIAN_MMIO
-       select USB_EHCI_BIG_ENDIAN_MMIO
index 6d51a3c00713d15c6cd4fb433a9f0593c0e93f21..5b1096b40afb48c08fd723a78a8dc15caad6725f 100644 (file)
@@ -1,5 +1,5 @@
-obj-y                          += interrupt.o iommu.o setup.o \
-                                  htab.o beat.o hvCall.o pci.o \
+obj-y                          += interrupt.o iommu.o \
+                                  htab.o beat.o hvCall.o \
                                   scc_epci.o scc_uhc.o
 
 obj-$(CONFIG_SMP)              += smp.o
index b126739834ac3eaa33169fd7df221bf2df995f1f..3f7aef947633ef97a0f990e601225d6ce899b814 100644 (file)
@@ -35,7 +35,7 @@
 #include <asm/ppc-pci.h>
 
 #include "scc.h"
-#include "pci.h"
+#include "../cell/celleb_pci.h"
 #include "interrupt.h"
 
 #define MAX_PCI_DEVICES   32