diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-29 08:19:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-29 08:19:04 -0500 |
commit | a45635dfb08a1fa2cf77bf1f2c4074961ce2e625 (patch) | |
tree | 9c8401158280d33137b6ffa3566743734da552c7 /arch/sh/drivers/pci/fixups-r7780rp.c | |
parent | 9762528f37ddc7071509dddb10e7b4b3b957fd01 (diff) |
sh: Reworked SH7780 PCI initialization.
This consolidates the PCI initialization code for all of the pci-sh7780
users, and sets up the memory window dynamically as opposed to using
hardcoded window positions.
A number of bugs were fixed at the same time, including the PIO handling
and master abort timeout settings being incorrect.
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 | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/sh/drivers/pci/fixups-r7780rp.c b/arch/sh/drivers/pci/fixups-r7780rp.c index 15ca65cb667e..08b2d8658a00 100644 --- a/arch/sh/drivers/pci/fixups-r7780rp.c +++ b/arch/sh/drivers/pci/fixups-r7780rp.c | |||
@@ -22,15 +22,3 @@ int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) | |||
22 | { | 22 | { |
23 | return irq_tab[slot]; | 23 | return irq_tab[slot]; |
24 | } | 24 | } |
25 | |||
26 | int pci_fixup_pcic(struct pci_channel *chan) | ||
27 | { | ||
28 | pci_write_reg(chan, 0x000043ff, SH4_PCIINTM); | ||
29 | pci_write_reg(chan, 0x00000000, SH7780_PCIIBAR); | ||
30 | pci_write_reg(chan, 0x08000000, SH7780_PCICSCR0); | ||
31 | pci_write_reg(chan, 0x0000001b, SH7780_PCICSAR0); | ||
32 | pci_write_reg(chan, 0xfd000000, SH7780_PCICSCR1); | ||
33 | pci_write_reg(chan, 0x0000000f, SH7780_PCICSAR1); | ||
34 | |||
35 | return 0; | ||
36 | } | ||