[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>
This commit is contained in:
parent
6ec859e1b2
commit
116bdc425c
|
@ -45,7 +45,6 @@ source "arch/powerpc/platforms/powermac/Kconfig"
|
||||||
source "arch/powerpc/platforms/prep/Kconfig"
|
source "arch/powerpc/platforms/prep/Kconfig"
|
||||||
source "arch/powerpc/platforms/maple/Kconfig"
|
source "arch/powerpc/platforms/maple/Kconfig"
|
||||||
source "arch/powerpc/platforms/pasemi/Kconfig"
|
source "arch/powerpc/platforms/pasemi/Kconfig"
|
||||||
source "arch/powerpc/platforms/celleb/Kconfig"
|
|
||||||
source "arch/powerpc/platforms/ps3/Kconfig"
|
source "arch/powerpc/platforms/ps3/Kconfig"
|
||||||
source "arch/powerpc/platforms/cell/Kconfig"
|
source "arch/powerpc/platforms/cell/Kconfig"
|
||||||
source "arch/powerpc/platforms/8xx/Kconfig"
|
source "arch/powerpc/platforms/8xx/Kconfig"
|
||||||
|
|
|
@ -25,6 +25,19 @@ config PPC_IBM_CELL_BLADE
|
||||||
select PPC_UDBG_16550
|
select PPC_UDBG_16550
|
||||||
select UDBG_RTAS_CONSOLE
|
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"
|
menu "Cell Broadband Engine options"
|
||||||
depends on PPC_CELL
|
depends on PPC_CELL
|
||||||
|
|
||||||
|
|
|
@ -31,5 +31,7 @@ obj-$(CONFIG_PCI_MSI) += axon_msi.o
|
||||||
|
|
||||||
# celleb stuff
|
# celleb stuff
|
||||||
ifeq ($(CONFIG_PPC_CELLEB),y)
|
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
|
endif
|
||||||
|
|
|
@ -37,13 +37,11 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
#include <asm/prom.h>
|
#include <asm/prom.h>
|
||||||
#include <asm/machdep.h>
|
|
||||||
#include <asm/pci-bridge.h>
|
#include <asm/pci-bridge.h>
|
||||||
#include <asm/ppc-pci.h>
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#include "../cell/io-workarounds.h"
|
#include "io-workarounds.h"
|
||||||
#include "pci.h"
|
#include "celleb_pci.h"
|
||||||
#include "interrupt.h"
|
|
||||||
|
|
||||||
#define MAX_PCI_DEVICES 32
|
#define MAX_PCI_DEVICES 32
|
||||||
#define MAX_PCI_FUNCTIONS 8
|
#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,
|
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;
|
char *config;
|
||||||
struct device_node *node;
|
struct device_node *node;
|
|
@ -27,7 +27,7 @@
|
||||||
#include <asm/prom.h>
|
#include <asm/prom.h>
|
||||||
#include <asm/ppc-pci.h>
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#include "../cell/io-workarounds.h"
|
#include "io-workarounds.h"
|
||||||
|
|
||||||
struct celleb_phb_spec {
|
struct celleb_phb_spec {
|
||||||
int (*setup)(struct device_node *, struct pci_controller *);
|
int (*setup)(struct device_node *, struct pci_controller *);
|
|
@ -56,13 +56,13 @@
|
||||||
#include <asm/rtas.h>
|
#include <asm/rtas.h>
|
||||||
#include <asm/cell-regs.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 "interrupt.h"
|
||||||
#include "beat_wrapper.h"
|
#include "pervasive.h"
|
||||||
#include "beat.h"
|
#include "ras.h"
|
||||||
#include "pci.h"
|
|
||||||
#include "../cell/interrupt.h"
|
|
||||||
#include "../cell/pervasive.h"
|
|
||||||
#include "../cell/ras.h"
|
|
||||||
|
|
||||||
static char celleb_machine_type[128] = "Celleb";
|
static char celleb_machine_type[128] = "Celleb";
|
||||||
|
|
|
@ -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
|
|
|
@ -1,5 +1,5 @@
|
||||||
obj-y += interrupt.o iommu.o setup.o \
|
obj-y += interrupt.o iommu.o \
|
||||||
htab.o beat.o hvCall.o pci.o \
|
htab.o beat.o hvCall.o \
|
||||||
scc_epci.o scc_uhc.o
|
scc_epci.o scc_uhc.o
|
||||||
|
|
||||||
obj-$(CONFIG_SMP) += smp.o
|
obj-$(CONFIG_SMP) += smp.o
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include <asm/ppc-pci.h>
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#include "scc.h"
|
#include "scc.h"
|
||||||
#include "pci.h"
|
#include "../cell/celleb_pci.h"
|
||||||
#include "interrupt.h"
|
#include "interrupt.h"
|
||||||
|
|
||||||
#define MAX_PCI_DEVICES 32
|
#define MAX_PCI_DEVICES 32
|
||||||
|
|
Loading…
Reference in New Issue