Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] celleb: Move the SCC related code for celleb

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>

authored by

Ishizaki Kou and committed by
Paul Mackerras
11eef455 116bdc42

+12 -17
+4 -1
arch/powerpc/platforms/cell/Makefile
··· 32 32 # celleb stuff 33 33 ifeq ($(CONFIG_PPC_CELLEB),y) 34 34 obj-y += celleb_setup.o \ 35 - celleb_pci.o \ 35 + celleb_pci.o celleb_scc_epci.o \ 36 + celleb_scc_uhc.o \ 36 37 io-workarounds.o spider-pci.o 38 + 39 + obj-$(CONFIG_SERIAL_TXX9) += celleb_scc_sio.o 37 40 endif
+1 -3
arch/powerpc/platforms/celleb/Makefile
··· 1 1 obj-y += interrupt.o iommu.o \ 2 - htab.o beat.o hvCall.o \ 3 - scc_epci.o scc_uhc.o 2 + htab.o beat.o hvCall.o 4 3 5 4 obj-$(CONFIG_SMP) += smp.o 6 5 obj-$(CONFIG_PPC_UDBG_BEAT) += udbg_beat.o 7 - obj-$(CONFIG_SERIAL_TXX9) += scc_sio.o 8 6 obj-$(CONFIG_SPU_BASE) += spu_priv1.o
arch/powerpc/platforms/celleb/scc.h arch/powerpc/platforms/cell/celleb_scc.h
+6 -12
arch/powerpc/platforms/celleb/scc_epci.c arch/powerpc/platforms/cell/celleb_scc_epci.c
··· 30 30 #include <asm/io.h> 31 31 #include <asm/irq.h> 32 32 #include <asm/prom.h> 33 - #include <asm/machdep.h> 34 33 #include <asm/pci-bridge.h> 35 34 #include <asm/ppc-pci.h> 36 35 37 - #include "scc.h" 38 - #include "../cell/celleb_pci.h" 39 - #include "interrupt.h" 36 + #include "celleb_scc.h" 37 + #include "celleb_pci.h" 40 38 41 39 #define MAX_PCI_DEVICES 32 42 40 #define MAX_PCI_FUNCTIONS 8 ··· 109 111 return PCIBIOS_SUCCESSFUL; 110 112 } 111 113 112 - static PCI_IO_ADDR celleb_epci_make_config_addr( 113 - struct pci_bus *bus, 114 - struct pci_controller *hose, 115 - unsigned int devfn, int where) 114 + static PCI_IO_ADDR celleb_epci_make_config_addr(struct pci_bus *bus, 115 + struct pci_controller *hose, unsigned int devfn, int where) 116 116 { 117 117 PCI_IO_ADDR addr; 118 118 ··· 406 410 if (!hose->cfg_addr) 407 411 goto error; 408 412 pr_debug("EPCI: cfg_addr map 0x%016lx->0x%016lx + 0x%016lx\n", 409 - r.start, (unsigned long)hose->cfg_addr, 410 - (r.end - r.start + 1)); 413 + r.start, (unsigned long)hose->cfg_addr, (r.end - r.start + 1)); 411 414 412 415 if (of_address_to_resource(node, 2, &r)) 413 416 goto error; ··· 414 419 if (!hose->cfg_data) 415 420 goto error; 416 421 pr_debug("EPCI: cfg_data map 0x%016lx->0x%016lx + 0x%016lx\n", 417 - r.start, (unsigned long)hose->cfg_data, 418 - (r.end - r.start + 1)); 422 + r.start, (unsigned long)hose->cfg_data, (r.end - r.start + 1)); 419 423 420 424 hose->ops = &celleb_epci_ops; 421 425 celleb_epci_init(hose);
arch/powerpc/platforms/celleb/scc_sio.c arch/powerpc/platforms/cell/celleb_scc_sio.c
+1 -1
arch/powerpc/platforms/celleb/scc_uhc.c arch/powerpc/platforms/cell/celleb_scc_uhc.c
··· 25 25 #include <asm/io.h> 26 26 #include <asm/machdep.h> 27 27 28 - #include "scc.h" 28 + #include "celleb_scc.h" 29 29 30 30 #define UHC_RESET_WAIT_MAX 10000 31 31