aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx/pci.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2006-08-25 11:59:22 -0500
committerPaul Mackerras <paulus@samba.org>2006-08-30 10:34:33 +1000
commitf1f17716d13bfb709809a3f5c84bda105b646b9e (patch)
tree1d8c9f4905ccb21b4cc91386fd3dca3e9697e25d /arch/powerpc/platforms/83xx/pci.c
parent[POWERPC] Adapt ipic driver to new host_ops interface, add set_irq_type to set IRQ sense (diff)
downloadlinux-dev-f1f17716d13bfb709809a3f5c84bda105b646b9e.tar.xz
linux-dev-f1f17716d13bfb709809a3f5c84bda105b646b9e.zip
[POWERPC] 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. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/pci.c')
-rw-r--r--arch/powerpc/platforms/83xx/pci.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/pci.c b/arch/powerpc/platforms/83xx/pci.c
index 3b5e563c279f..5d84a9ccd103 100644
--- a/arch/powerpc/platforms/83xx/pci.c
+++ b/arch/powerpc/platforms/83xx/pci.c
@@ -45,6 +45,15 @@ int mpc83xx_exclude_device(u_char bus, u_char devfn)
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;