Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f352c725 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt
Browse files

powerpc/wsp: Add PCIe Root support to PowerEN/WSP



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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 2fa3d9e5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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"
+1 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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)
+3 −0
Original line number Diff line number Diff line
@@ -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);

+1133 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading