Skip to contentSkip to conversation

modify mpc83xx platforms to use new IRQ layer

PATCH In review Kim Phillips 1 participant 1 message Aug 25, 2006

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

PATCH 3/4 modify mpc83xx platforms to use new IRQ layer

This fixes MPC834x MDS (formerly SYS) and ITX platform code to get IRQ data (including PCI) from the device tree, and to use the new IPIC code.

renamed defconfig (sys -> mds), left one redundant NULL assignment in mpc83xx_pcibios_fixup to keep the compiler happy.

---

please apply to 2.6.18

 ...mpc834x_sys_defconfig => mpc834x_mds_defconfig} |    0 
 arch/powerpc/platforms/83xx/mpc834x_itx.c          |   49 +++---------------
 arch/powerpc/platforms/83xx/mpc834x_sys.c          |   56 +++-----------------
 arch/powerpc/platforms/83xx/mpc83xx.h              |    1 
 arch/powerpc/platforms/83xx/pci.c                  |    9 +++
 5 files changed, 28 insertions(+), 87 deletions(-)
arch/powerpc/configs/mpc834x_mds_defconfig renamed from arch/powerpc/configs/mpc834x_sys_defconfig +0 -0
similarity index 100%
rename from arch/powerpc/configs/mpc834x_sys_defconfig
rename to arch/powerpc/configs/mpc834x_mds_defconfig
arch/powerpc/platforms/83xx/mpc834x_itx.c +9 -40

72 lines not on this page · raw message

arch/powerpc/platforms/83xx/mpc834x_sys.c +9 -47

79 lines not on this page · raw message

arch/powerpc/platforms/83xx/mpc83xx.h +1 -0
index 01cae10..2c82bca 100644
@@ -11,6 +11,7 @@ #include <linux/device.h>
 
 extern int add_bridge(struct device_node *dev);
 extern int mpc83xx_exclude_device(u_char bus, u_char devfn);
+extern void mpc83xx_pcibios_fixup(void);
 extern void mpc83xx_restart(char *cmd);
 extern long mpc83xx_time_init(void);
 
arch/powerpc/platforms/83xx/pci.c +9 -0
index 9c36505..4557ac5 100644
@@ -45,6 +45,15 @@ int mpc83xx_exclude_device(u_char bus, u
 	return PCIBIOS_SUCCESSFUL;
 }
 
+void __init mpc83xx_pcibios_fixup(void)
+{
+	struct pci_dev *dev = NULL;
+
+	/* map all the PCI irqs */
+	for_each_pci_dev(dev)
+		pci_read_irq_line(dev);
+}
+
 int __init add_bridge(struct device_node *dev)
 {
 	int len;
Signature · 1 line
1.4.1