Skip to contentSkip to conversation

Add mpc52xx/lite5200 PCI support

PATCH In review Grant Likely 2 participants 2 messages Dec 12, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add mpc52xx/lite5200 PCI support

---
 arch/powerpc/Kconfig                      |   17 ++-
 arch/powerpc/platforms/52xx/Makefile      |    1 +
 arch/powerpc/platforms/52xx/lite5200.c    |    6 +
 arch/powerpc/platforms/52xx/mpc52xx_pci.c |  412 +++++++++++++++++++++++++++++
 include/asm-powerpc/mpc52xx.h             |    2 +
 5 files changed, 437 insertions(+), 1 deletions(-)
arch/powerpc/Kconfig +16 -1
index 8699dad..f3a3375 100644
@@ -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
index a46184a..795b713 100644
@@ -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)		+= mpc52xx_pci.o
 endif
 
 obj-$(CONFIG_PPC_EFIKA)		+= efika-setup.o efika-pci.o
arch/powerpc/platforms/52xx/lite5200.c +6 -0
index eaff71e..28ec536 100644
@@ -107,6 +107,12 @@ static void __init lite52xx_setup_arch(v
 	mpc52xx_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/mpc52xx_pci.c new file +412 -0

412 lines not on this page · raw message

include/asm-powerpc/mpc52xx.h +2 -0
index 4a28a85..2f2a025 100644
@@ -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