Add mpc52xx/lite5200 PCI support
Subsystems (2)
PATCH 1/1 Add mpc52xx/lite5200 PCI support
Signed-off-by Grant Likely <[email protected]>
--- arch/powerpc/Kconfig | 17 ++- arch/powerpc/platforms/52xx/Makefile | 1 + arch/powerpc/platforms/52xx/lite5200.c | 6 + arch/powerpc/platforms/52xx/pci.c | 404 ++++++++++++++++++++++++++++++++ include/asm-powerpc/mpc52xx.h | 2 + 5 files changed, 429 insertions(+), 1 deletions(-)
arch/powerpc/Kconfig +16 -1
@@ -429,6 +429,21 @@ config PPC_MPC52xx bool default n +config PPC_MPC5200 + bool + select PPC_MPC52xx + default n + +config PPC_MPC5200_BUGFIX + bool "MPC5200 (L25R) bugfix support" + depends on PPC_MPC5200 + default n + help + Enable workarounds for original MPC5200 errata. This is not required + for MPC5200B based boards. + + It is safe to say 'Y' here + config PPC_EFIKA bool "bPlan Efika 5k2. MPC5200B based computer" depends on PPC_MULTIPLATFORM && PPC32
@@ -441,7 +456,7 @@ config PPC_EFIKA config PPC_LITE5200 bool "Freescale Lite5200 Eval Board" depends on PPC_MULTIPLATFORM && PPC32 - select PPC_MPC52xx + select PPC_MPC5200 default n config PPC_PMAC
arch/powerpc/platforms/52xx/Makefile +1 -0
@@ -3,6 +3,7 @@ # Makefile for 52xx based boards # ifeq ($(CONFIG_PPC_MERGE),y) obj-y += mpc52xx_pic.o mpc52xx_common.o +obj-$(CONFIG_PCI) += pci.o endif obj-$(CONFIG_PPC_EFIKA) += efika-setup.o efika-pci.o
arch/powerpc/platforms/52xx/lite5200.c +6 -0
@@ -107,6 +107,12 @@ static void __init lite52xx_setup_arch(vmpc52xx_setup_cpu ();/* Generic */ lite52xx_setup_cpu ();/* Platorm specific */ +#ifdef CONFIG_PCI + np =of_find_node_by_type (np,"pci" ); +if (np) +mpc52xx_add_bridge (np); +#endif +#ifdef CONFIG_BLK_DEV_INITRD if (initrd_start)ROOT_DEV = Root_RAM0;
arch/powerpc/platforms/52xx/pci.c new file +404 -0
404 lines not on this page · raw message
include/asm-powerpc/mpc52xx.h +2 -0
@@ -248,6 +248,8 @@ extern void mpc52xx_setup_cpu(void);extern void mpc52xx_init_irq (void );extern unsigned int mpc52xx_get_irq (void ); +extern int __init mpc52xx_add_bridge (struct device_node *node); +#endif /* __ASSEMBLY__ */ #endif /* __ASM_POWERPC_MPC52xx_H__ */
Signature · 1 line
1.4.3.rc2.g0503