diff options
author | Ishizaki Kou <kou.ishizaki@toshiba.co.jp> | 2008-04-24 05:26:28 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-24 07:08:13 -0400 |
commit | 11eef455c2834e192c6ffe9f3ffd09af70fafe81 (patch) | |
tree | 199940f8ca3f83c58f2cec2ffdef3ad9c8829921 | |
parent | 116bdc425c7e01e97cff2f3e6d0134511e8f13e3 (diff) |
[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>
-rw-r--r-- | arch/powerpc/platforms/cell/Makefile | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/celleb_scc.h (renamed from arch/powerpc/platforms/celleb/scc.h) | 0 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/celleb_scc_epci.c (renamed from arch/powerpc/platforms/celleb/scc_epci.c) | 18 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/celleb_scc_sio.c (renamed from arch/powerpc/platforms/celleb/scc_sio.c) | 0 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/celleb_scc_uhc.c (renamed from arch/powerpc/platforms/celleb/scc_uhc.c) | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/celleb/Makefile | 4 |
6 files changed, 12 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/cell/Makefile b/arch/powerpc/platforms/cell/Makefile index b644f5717fc2..3b6ee08701f5 100644 --- a/arch/powerpc/platforms/cell/Makefile +++ b/arch/powerpc/platforms/cell/Makefile | |||
@@ -32,6 +32,9 @@ obj-$(CONFIG_PCI_MSI) += axon_msi.o | |||
32 | # celleb stuff | 32 | # celleb stuff |
33 | ifeq ($(CONFIG_PPC_CELLEB),y) | 33 | ifeq ($(CONFIG_PPC_CELLEB),y) |
34 | obj-y += celleb_setup.o \ | 34 | obj-y += celleb_setup.o \ |
35 | celleb_pci.o \ | 35 | celleb_pci.o celleb_scc_epci.o \ |
36 | celleb_scc_uhc.o \ | ||
36 | io-workarounds.o spider-pci.o | 37 | io-workarounds.o spider-pci.o |
38 | |||
39 | obj-$(CONFIG_SERIAL_TXX9) += celleb_scc_sio.o | ||
37 | endif | 40 | endif |
diff --git a/arch/powerpc/platforms/celleb/scc.h b/arch/powerpc/platforms/cell/celleb_scc.h index 6be1542a6e66..6be1542a6e66 100644 --- a/arch/powerpc/platforms/celleb/scc.h +++ b/arch/powerpc/platforms/cell/celleb_scc.h | |||
diff --git a/arch/powerpc/platforms/celleb/scc_epci.c b/arch/powerpc/platforms/cell/celleb_scc_epci.c index 3f7aef947633..08c285b10e30 100644 --- a/arch/powerpc/platforms/celleb/scc_epci.c +++ b/arch/powerpc/platforms/cell/celleb_scc_epci.c | |||
@@ -30,13 +30,11 @@ | |||
30 | #include <asm/io.h> | 30 | #include <asm/io.h> |
31 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
32 | #include <asm/prom.h> | 32 | #include <asm/prom.h> |
33 | #include <asm/machdep.h> | ||
34 | #include <asm/pci-bridge.h> | 33 | #include <asm/pci-bridge.h> |
35 | #include <asm/ppc-pci.h> | 34 | #include <asm/ppc-pci.h> |
36 | 35 | ||
37 | #include "scc.h" | 36 | #include "celleb_scc.h" |
38 | #include "../cell/celleb_pci.h" | 37 | #include "celleb_pci.h" |
39 | #include "interrupt.h" | ||
40 | 38 | ||
41 | #define MAX_PCI_DEVICES 32 | 39 | #define MAX_PCI_DEVICES 32 |
42 | #define MAX_PCI_FUNCTIONS 8 | 40 | #define MAX_PCI_FUNCTIONS 8 |
@@ -111,10 +109,8 @@ static int celleb_epci_check_abort(struct pci_controller *hose, | |||
111 | return PCIBIOS_SUCCESSFUL; | 109 | return PCIBIOS_SUCCESSFUL; |
112 | } | 110 | } |
113 | 111 | ||
114 | static PCI_IO_ADDR celleb_epci_make_config_addr( | 112 | static PCI_IO_ADDR celleb_epci_make_config_addr(struct pci_bus *bus, |
115 | struct pci_bus *bus, | 113 | struct pci_controller *hose, unsigned int devfn, int where) |
116 | struct pci_controller *hose, | ||
117 | unsigned int devfn, int where) | ||
118 | { | 114 | { |
119 | PCI_IO_ADDR addr; | 115 | PCI_IO_ADDR addr; |
120 | 116 | ||
@@ -410,8 +406,7 @@ static int __init celleb_setup_epci(struct device_node *node, | |||
410 | if (!hose->cfg_addr) | 406 | if (!hose->cfg_addr) |
411 | goto error; | 407 | goto error; |
412 | pr_debug("EPCI: cfg_addr map 0x%016lx->0x%016lx + 0x%016lx\n", | 408 | pr_debug("EPCI: cfg_addr map 0x%016lx->0x%016lx + 0x%016lx\n", |
413 | r.start, (unsigned long)hose->cfg_addr, | 409 | r.start, (unsigned long)hose->cfg_addr, (r.end - r.start + 1)); |
414 | (r.end - r.start + 1)); | ||
415 | 410 | ||
416 | if (of_address_to_resource(node, 2, &r)) | 411 | if (of_address_to_resource(node, 2, &r)) |
417 | goto error; | 412 | goto error; |
@@ -419,8 +414,7 @@ static int __init celleb_setup_epci(struct device_node *node, | |||
419 | if (!hose->cfg_data) | 414 | if (!hose->cfg_data) |
420 | goto error; | 415 | goto error; |
421 | pr_debug("EPCI: cfg_data map 0x%016lx->0x%016lx + 0x%016lx\n", | 416 | pr_debug("EPCI: cfg_data map 0x%016lx->0x%016lx + 0x%016lx\n", |
422 | r.start, (unsigned long)hose->cfg_data, | 417 | r.start, (unsigned long)hose->cfg_data, (r.end - r.start + 1)); |
423 | (r.end - r.start + 1)); | ||
424 | 418 | ||
425 | hose->ops = &celleb_epci_ops; | 419 | hose->ops = &celleb_epci_ops; |
426 | celleb_epci_init(hose); | 420 | celleb_epci_init(hose); |
diff --git a/arch/powerpc/platforms/celleb/scc_sio.c b/arch/powerpc/platforms/cell/celleb_scc_sio.c index 3a16c5b3c464..3a16c5b3c464 100644 --- a/arch/powerpc/platforms/celleb/scc_sio.c +++ b/arch/powerpc/platforms/cell/celleb_scc_sio.c | |||
diff --git a/arch/powerpc/platforms/celleb/scc_uhc.c b/arch/powerpc/platforms/cell/celleb_scc_uhc.c index cb4307994087..d63b720bfe3a 100644 --- a/arch/powerpc/platforms/celleb/scc_uhc.c +++ b/arch/powerpc/platforms/cell/celleb_scc_uhc.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <asm/io.h> | 25 | #include <asm/io.h> |
26 | #include <asm/machdep.h> | 26 | #include <asm/machdep.h> |
27 | 27 | ||
28 | #include "scc.h" | 28 | #include "celleb_scc.h" |
29 | 29 | ||
30 | #define UHC_RESET_WAIT_MAX 10000 | 30 | #define UHC_RESET_WAIT_MAX 10000 |
31 | 31 | ||
diff --git a/arch/powerpc/platforms/celleb/Makefile b/arch/powerpc/platforms/celleb/Makefile index 5b1096b40afb..edb6d5e858a1 100644 --- a/arch/powerpc/platforms/celleb/Makefile +++ b/arch/powerpc/platforms/celleb/Makefile | |||
@@ -1,8 +1,6 @@ | |||
1 | obj-y += interrupt.o iommu.o \ | 1 | obj-y += interrupt.o iommu.o \ |
2 | htab.o beat.o hvCall.o \ | 2 | htab.o beat.o hvCall.o |
3 | scc_epci.o scc_uhc.o | ||
4 | 3 | ||
5 | obj-$(CONFIG_SMP) += smp.o | 4 | obj-$(CONFIG_SMP) += smp.o |
6 | obj-$(CONFIG_PPC_UDBG_BEAT) += udbg_beat.o | 5 | obj-$(CONFIG_PPC_UDBG_BEAT) += udbg_beat.o |
7 | obj-$(CONFIG_SERIAL_TXX9) += scc_sio.o | ||
8 | obj-$(CONFIG_SPU_BASE) += spu_priv1.o | 6 | obj-$(CONFIG_SPU_BASE) += spu_priv1.o |