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

[POWERPC] celleb: Move the files for celleb base support

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>

authored by

Ishizaki Kou and committed by
Paul Mackerras
116bdc42 6ec859e1

+29 -29
-1
arch/powerpc/platforms/Kconfig
··· 45 45 source "arch/powerpc/platforms/prep/Kconfig" 46 46 source "arch/powerpc/platforms/maple/Kconfig" 47 47 source "arch/powerpc/platforms/pasemi/Kconfig" 48 - source "arch/powerpc/platforms/celleb/Kconfig" 49 48 source "arch/powerpc/platforms/ps3/Kconfig" 50 49 source "arch/powerpc/platforms/cell/Kconfig" 51 50 source "arch/powerpc/platforms/8xx/Kconfig"
+13
arch/powerpc/platforms/cell/Kconfig
··· 25 25 select PPC_UDBG_16550 26 26 select UDBG_RTAS_CONSOLE 27 27 28 + config PPC_CELLEB 29 + bool "Toshiba's Cell Reference Set 'Celleb' Architecture" 30 + depends on PPC_MULTIPLATFORM && PPC64 31 + select PPC_CELL 32 + select PPC_CELL_NATIVE 33 + select PPC_RTAS 34 + select PPC_INDIRECT_IO 35 + select PPC_OF_PLATFORM_PCI 36 + select HAS_TXX9_SERIAL 37 + select PPC_UDBG_BEAT 38 + select USB_OHCI_BIG_ENDIAN_MMIO 39 + select USB_EHCI_BIG_ENDIAN_MMIO 40 + 28 41 menu "Cell Broadband Engine options" 29 42 depends on PPC_CELL 30 43
+3 -1
arch/powerpc/platforms/cell/Makefile
··· 31 31 32 32 # celleb stuff 33 33 ifeq ($(CONFIG_PPC_CELLEB),y) 34 - obj-y += io-workarounds.o spider-pci.o 34 + obj-y += celleb_setup.o \ 35 + celleb_pci.o \ 36 + io-workarounds.o spider-pci.o 35 37 endif
-12
arch/powerpc/platforms/celleb/Kconfig
··· 1 - config PPC_CELLEB 2 - bool "Toshiba's Cell Reference Set 'Celleb' Architecture" 3 - depends on PPC_MULTIPLATFORM && PPC64 4 - select PPC_CELL 5 - select PPC_CELL_NATIVE 6 - select PPC_RTAS 7 - select PPC_INDIRECT_IO 8 - select PPC_OF_PLATFORM_PCI 9 - select HAS_TXX9_SERIAL 10 - select PPC_UDBG_BEAT 11 - select USB_OHCI_BIG_ENDIAN_MMIO 12 - select USB_EHCI_BIG_ENDIAN_MMIO
+2 -2
arch/powerpc/platforms/celleb/Makefile
··· 1 - obj-y += interrupt.o iommu.o setup.o \ 2 - htab.o beat.o hvCall.o pci.o \ 1 + obj-y += interrupt.o iommu.o \ 2 + htab.o beat.o hvCall.o \ 3 3 scc_epci.o scc_uhc.o 4 4 5 5 obj-$(CONFIG_SMP) += smp.o
+3 -5
arch/powerpc/platforms/celleb/pci.c arch/powerpc/platforms/cell/celleb_pci.c
··· 37 37 #include <asm/io.h> 38 38 #include <asm/irq.h> 39 39 #include <asm/prom.h> 40 - #include <asm/machdep.h> 41 40 #include <asm/pci-bridge.h> 42 41 #include <asm/ppc-pci.h> 43 42 44 - #include "../cell/io-workarounds.h" 45 - #include "pci.h" 46 - #include "interrupt.h" 43 + #include "io-workarounds.h" 44 + #include "celleb_pci.h" 47 45 48 46 #define MAX_PCI_DEVICES 32 49 47 #define MAX_PCI_FUNCTIONS 8 ··· 189 191 190 192 191 193 static int celleb_fake_pci_write_config(struct pci_bus *bus, 192 - unsigned int devfn, int where, int size, u32 val) 194 + unsigned int devfn, int where, int size, u32 val) 193 195 { 194 196 char *config; 195 197 struct device_node *node;
+1 -1
arch/powerpc/platforms/celleb/pci.h arch/powerpc/platforms/cell/celleb_pci.h
··· 27 27 #include <asm/prom.h> 28 28 #include <asm/ppc-pci.h> 29 29 30 - #include "../cell/io-workarounds.h" 30 + #include "io-workarounds.h" 31 31 32 32 struct celleb_phb_spec { 33 33 int (*setup)(struct device_node *, struct pci_controller *);
+1 -1
arch/powerpc/platforms/celleb/scc_epci.c
··· 35 35 #include <asm/ppc-pci.h> 36 36 37 37 #include "scc.h" 38 - #include "pci.h" 38 + #include "../cell/celleb_pci.h" 39 39 #include "interrupt.h" 40 40 41 41 #define MAX_PCI_DEVICES 32
+6 -6
arch/powerpc/platforms/celleb/setup.c arch/powerpc/platforms/cell/celleb_setup.c
··· 56 56 #include <asm/rtas.h> 57 57 #include <asm/cell-regs.h> 58 58 59 + #include "../celleb/interrupt.h" 60 + #include "../celleb/beat_wrapper.h" 61 + #include "../celleb/beat.h" 62 + #include "celleb_pci.h" 59 63 #include "interrupt.h" 60 - #include "beat_wrapper.h" 61 - #include "beat.h" 62 - #include "pci.h" 63 - #include "../cell/interrupt.h" 64 - #include "../cell/pervasive.h" 65 - #include "../cell/ras.h" 64 + #include "pervasive.h" 65 + #include "ras.h" 66 66 67 67 static char celleb_machine_type[128] = "Celleb"; 68 68