diff options
author | Ryusuke Sakato <sakato.ryusuke@renesas.com> | 2007-05-06 21:48:56 -0400 |
---|---|---|
committer | Paul Mundt <lethal@hera.kernel.org> | 2007-05-06 22:11:57 -0400 |
commit | 39374aadcd0159b4744ab456f4efa100bea84bd4 (patch) | |
tree | abc7f4066e3404cf12e50688f558e0f9afd1de9d /arch/sh/drivers | |
parent | 9c37dc633016e9ebdc39adba0737b390e0de1507 (diff) |
sh: R7785RP board updates.
Some fixups for the R7785RP board. Gets iVDR working.
Signed-off-by: Ryusuke Sakato <sakato.ryusuke@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers')
-rw-r--r-- | arch/sh/drivers/pci/ops-r7780rp.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/sh/drivers/pci/ops-r7780rp.c b/arch/sh/drivers/pci/ops-r7780rp.c index 6f4fb38bafa2..f2216081ab85 100644 --- a/arch/sh/drivers/pci/ops-r7780rp.c +++ b/arch/sh/drivers/pci/ops-r7780rp.c | |||
@@ -25,22 +25,12 @@ static char r7780mp_irq_tab[] __initdata = { | |||
25 | 65, 66, 67, 68, | 25 | 65, 66, 67, 68, |
26 | }; | 26 | }; |
27 | 27 | ||
28 | static char r7785rp_irq_tab[][4] __initdata = { | ||
29 | { 65, 66, 67, 68 }, /* INT ABCD */ | ||
30 | { 66, 67, 68, 65 }, /* INT BCDA */ | ||
31 | { 67, 68, 65, 66 }, /* INT CDAB */ | ||
32 | { 68, 65, 66, 67 }, /* INT DABC */ | ||
33 | { 64, 64, 64, 64 }, /* PCI Host */ | ||
34 | }; | ||
35 | |||
36 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | 28 | int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) |
37 | { | 29 | { |
38 | if (mach_is_r7780rp()) | 30 | if (mach_is_r7780rp()) |
39 | return r7780rp_irq_tab[slot]; | 31 | return r7780rp_irq_tab[slot]; |
40 | if (mach_is_r7780mp()) | 32 | if (mach_is_r7780mp() || mach_is_r7785rp()) |
41 | return r7780mp_irq_tab[slot]; | 33 | return r7780mp_irq_tab[slot]; |
42 | if (mach_is_r7785rp()) | ||
43 | return r7785rp_irq_tab[slot][pin]; | ||
44 | 34 | ||
45 | printk(KERN_ERR "PCI: Bad IRQ mapping " | 35 | printk(KERN_ERR "PCI: Bad IRQ mapping " |
46 | "request for slot %d, func %d\n", slot, pin-1); | 36 | "request for slot %d, func %d\n", slot, pin-1); |