summaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci/fixups-sdk7780.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-29 22:19:04 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-01-29 22:19:04 +0900
commita45635dfb08a1fa2cf77bf1f2c4074961ce2e625 (patch)
tree9c8401158280d33137b6ffa3566743734da552c7 /arch/sh/drivers/pci/fixups-sdk7780.c
parent9762528f37ddc7071509dddb10e7b4b3b957fd01 (diff)
downloadblackbird-op-linux-a45635dfb08a1fa2cf77bf1f2c4074961ce2e625.tar.gz
blackbird-op-linux-a45635dfb08a1fa2cf77bf1f2c4074961ce2e625.zip
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-sdk7780.c')
-rw-r--r--arch/sh/drivers/pci/fixups-sdk7780.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/sh/drivers/pci/fixups-sdk7780.c b/arch/sh/drivers/pci/fixups-sdk7780.c
index 250b0edd7365..0930f988ac29 100644
--- a/arch/sh/drivers/pci/fixups-sdk7780.c
+++ b/arch/sh/drivers/pci/fixups-sdk7780.c
@@ -31,22 +31,3 @@ int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin)
{
return sdk7780_irq_tab[pin-1][slot];
}
-int pci_fixup_pcic(struct pci_channel *chan)
-{
- /* Enable all interrupts, so we know what to fix */
- pci_write_reg(chan, 0x0000C3FF, SH7780_PCIIMR);
-
- /* Set up standard PCI config registers */
- pci_write_reg(chan, 0x08000000, SH7780_PCIMBAR0); /* PCI */
- pci_write_reg(chan, 0x08000000, SH4_PCILAR0); /* SHwy */
- pci_write_reg(chan, 0x07F00001, SH4_PCILSR0); /* size 128M w/ MBAR */
-
- pci_write_reg(chan, 0x00000000, SH7780_PCIMBAR1);
- pci_write_reg(chan, 0x00000000, SH4_PCILAR1);
- pci_write_reg(chan, 0x00000000, SH4_PCILSR1);
-
- pci_write_reg(chan, 0xAB000801, SH7780_PCIIBAR);
- pci_write_reg(chan, 0xA5000C01, SH4_PCICR);
-
- return 0;
-}
OpenPOWER on IntegriCloud