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>
This commit is contained in:
Paul Mundt
2009-04-17 20:11:44 +09:00
parent 4c7a47de89
commit a6d377b696
7 changed files with 31 additions and 137 deletions

View File

@@ -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);