diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 20:11:44 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 20:11:44 +0900 |
commit | a6d377b6969235a3b5a6e87bdcef387d0976b41c (patch) | |
tree | 1c84b8182c8ef468c8b874361f4ae33aeafe50e7 /arch/sh/drivers/pci/fixups-r7780rp.c | |
parent | 4c7a47de897e89c25a40e228ac5319cbac7257fe (diff) |
sh: pci: Consolidate SH7780 PCIC IRQ routing.
Now that the platform code is a bit leaner, we can start consolidating
the various IRQ routing implementations. There are effectively only 2
variants, and the others can use those directly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/fixups-r7780rp.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-r7780rp.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/sh/drivers/pci/fixups-r7780rp.c b/arch/sh/drivers/pci/fixups-r7780rp.c index 31f8dfbfcbf..864e92f6970 100644 --- a/arch/sh/drivers/pci/fixups-r7780rp.c +++ b/arch/sh/drivers/pci/fixups-r7780rp.c @@ -11,9 +11,17 @@ * for more details. */ #include <linux/pci.h> +#include <linux/io.h> #include "pci-sh4.h" -#include <asm/io.h> +static char irq_tab[] __initdata = { + 65, 66, 67, 68, +}; + +int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) +{ + return irq_tab[slot]; +} int pci_fixup_pcic(struct pci_channel *chan) { pci_write_reg(chan, 0x000043ff, SH4_PCIINTM); |