modify mpc83xx platforms to use new IRQ layer
Subsystems (2)
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.
Signed-off-by Kim Phillips <[email protected]>
Signed-off-by Li Yang <[email protected]>
---
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
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
@@ -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
@@ -45,6 +45,15 @@ int mpc83xx_exclude_device(u_char bus, ureturn 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