]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] celleb: Move the SCC related code for celleb
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Thu, 24 Apr 2008 09:26:28 +0000 (19:26 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Apr 2008 11:08:13 +0000 (21:08 +1000)
This moves the SCC (Super Companion Chip) related code for celleb
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: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/Makefile
arch/powerpc/platforms/cell/celleb_scc.h [moved from arch/powerpc/platforms/celleb/scc.h with 100% similarity]
arch/powerpc/platforms/cell/celleb_scc_epci.c [moved from arch/powerpc/platforms/celleb/scc_epci.c with 96% similarity]
arch/powerpc/platforms/cell/celleb_scc_sio.c [moved from arch/powerpc/platforms/celleb/scc_sio.c with 100% similarity]
arch/powerpc/platforms/cell/celleb_scc_uhc.c [moved from arch/powerpc/platforms/celleb/scc_uhc.c with 99% similarity]
arch/powerpc/platforms/celleb/Makefile

index b644f5717fc21b22cd55a67223636c74d6e27992..3b6ee08701f5313f5f7207569ec99a9cf4c33c9f 100644 (file)
@@ -32,6 +32,9 @@ obj-$(CONFIG_PCI_MSI)                 += axon_msi.o
 # celleb stuff
 ifeq ($(CONFIG_PPC_CELLEB),y)
 obj-y                                  += celleb_setup.o \
-                                          celleb_pci.o \
+                                          celleb_pci.o celleb_scc_epci.o \
+                                          celleb_scc_uhc.o \
                                           io-workarounds.o spider-pci.o
+
+obj-$(CONFIG_SERIAL_TXX9)              += celleb_scc_sio.o
 endif
similarity index 96%
rename from arch/powerpc/platforms/celleb/scc_epci.c
rename to arch/powerpc/platforms/cell/celleb_scc_epci.c
index 3f7aef947633ef97a0f990e601225d6ce899b814..08c285b10e30a81f89e4113773e357abd5742971 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 "scc.h"
-#include "../cell/celleb_pci.h"
-#include "interrupt.h"
+#include "celleb_scc.h"
+#include "celleb_pci.h"
 
 #define MAX_PCI_DEVICES   32
 #define MAX_PCI_FUNCTIONS  8
@@ -111,10 +109,8 @@ static int celleb_epci_check_abort(struct pci_controller *hose,
        return PCIBIOS_SUCCESSFUL;
 }
 
-static PCI_IO_ADDR celleb_epci_make_config_addr(
-                                       struct pci_bus *bus,
-                                       struct pci_controller *hose,
-                                       unsigned int devfn, int where)
+static PCI_IO_ADDR celleb_epci_make_config_addr(struct pci_bus *bus,
+               struct pci_controller *hose, unsigned int devfn, int where)
 {
        PCI_IO_ADDR addr;
 
@@ -410,8 +406,7 @@ static int __init celleb_setup_epci(struct device_node *node,
        if (!hose->cfg_addr)
                goto error;
        pr_debug("EPCI: cfg_addr map 0x%016lx->0x%016lx + 0x%016lx\n",
-                r.start, (unsigned long)hose->cfg_addr,
-               (r.end - r.start + 1));
+                r.start, (unsigned long)hose->cfg_addr, (r.end - r.start + 1));
 
        if (of_address_to_resource(node, 2, &r))
                goto error;
@@ -419,8 +414,7 @@ static int __init celleb_setup_epci(struct device_node *node,
        if (!hose->cfg_data)
                goto error;
        pr_debug("EPCI: cfg_data map 0x%016lx->0x%016lx + 0x%016lx\n",
-                r.start, (unsigned long)hose->cfg_data,
-               (r.end - r.start + 1));
+                r.start, (unsigned long)hose->cfg_data, (r.end - r.start + 1));
 
        hose->ops = &celleb_epci_ops;
        celleb_epci_init(hose);
similarity index 99%
rename from arch/powerpc/platforms/celleb/scc_uhc.c
rename to arch/powerpc/platforms/cell/celleb_scc_uhc.c
index cb4307994087638916db9c126fc5addcfaaf3b75..d63b720bfe3a591aff611d6cc31854e282037dd7 100644 (file)
@@ -25,7 +25,7 @@
 #include <asm/io.h>
 #include <asm/machdep.h>
 
-#include "scc.h"
+#include "celleb_scc.h"
 
 #define UHC_RESET_WAIT_MAX 10000
 
index 5b1096b40afb48c08fd723a78a8dc15caad6725f..edb6d5e858a1a3b84858856702598f6c26e533ff 100644 (file)
@@ -1,8 +1,6 @@
 obj-y                          += interrupt.o iommu.o \
-                                  htab.o beat.o hvCall.o \
-                                  scc_epci.o scc_uhc.o
+                                  htab.o beat.o hvCall.o
 
 obj-$(CONFIG_SMP)              += smp.o
 obj-$(CONFIG_PPC_UDBG_BEAT)    += udbg_beat.o
-obj-$(CONFIG_SERIAL_TXX9)      += scc_sio.o
 obj-$(CONFIG_SPU_BASE)         += spu_priv1.o