diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 07:11:44 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 07:11:44 -0400 |
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 31f8dfbfcbf5..864e92f69702 100644 --- a/arch/sh/drivers/pci/fixups-r7780rp.c +++ b/arch/sh/drivers/pci/fixups-r7780rp.c | |||
@@ -11,9 +11,17 @@ | |||
11 | * for more details. | 11 | * for more details. |
12 | */ | 12 | */ |
13 | #include <linux/pci.h> | 13 | #include <linux/pci.h> |
14 | #include <linux/io.h> | ||
14 | #include "pci-sh4.h" | 15 | #include "pci-sh4.h" |
15 | #include <asm/io.h> | ||
16 | 16 | ||
17 | static char irq_tab[] __initdata = { | ||
18 | 65, 66, 67, 68, | ||
19 | }; | ||
20 | |||
21 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | ||
22 | { | ||
23 | return irq_tab[slot]; | ||
24 | } | ||
17 | int pci_fixup_pcic(struct pci_channel *chan) | 25 | int pci_fixup_pcic(struct pci_channel *chan) |
18 | { | 26 | { |
19 | pci_write_reg(chan, 0x000043ff, SH4_PCIINTM); | 27 | pci_write_reg(chan, 0x000043ff, SH4_PCIINTM); |