Skip to content

Commit

Permalink
powerpc/wsp: Add PCIe Root support to PowerEN/WSP
Browse files Browse the repository at this point in the history
Based on a patch by Benjamin Herrenschmidt <benh@kernel.crashing.org>

Modernized and slightly modified to not record erros into the nvram
log since we do not have that device driver just yet.

Jimi Xenidis <jimix@pobox.com>

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Sep 19, 2011
1 parent 2fa3d9e commit f352c72
Show file tree
Hide file tree
Showing 6 changed files with 1,412 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/wsp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ config PPC_WSP
select PPC_SCOM
select PPC_XICS
select PPC_ICP_NATIVE
select PCI
select PPC_IO_WORKAROUNDS if PCI
select PPC_INDIRECT_PIO if PCI
default n

menu "WSP platform selection"
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/platforms/wsp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ obj-y += setup.o ics.o
obj-$(CONFIG_PPC_PSR2) += psr2.o opb_pic.o
obj-$(CONFIG_PPC_WSP) += scom_wsp.o
obj-$(CONFIG_SMP) += smp.o scom_smp.o
obj-$(CONFIG_PCI) += wsp_pci.o
4 changes: 4 additions & 0 deletions arch/powerpc/platforms/wsp/psr2.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ static void __init psr2_setup_arch(void)
#ifdef CONFIG_SMP
a2_setup_smp();
#endif
#ifdef CONFIG_PCI
wsp_setup_pci();
#endif

}

static int __init psr2_probe(void)
Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/wsp/wsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include <asm/wsp.h>

/* Devtree compatible strings for major devices */
#define PCIE_COMPATIBLE "ibm,wsp-pciex"

extern void wsp_setup_pci(void);
extern void scom_init_wsp(void);

Expand Down
Loading

0 comments on commit f352c72

Please sign in to comment.