diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 01:09:09 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 01:09:09 -0400 |
commit | 0bbc9bc3189f24de946777af43c9033c8c4871e4 (patch) | |
tree | 996a03383430848a62746d8ffb9c5035d0d9a4ca /arch/sh/drivers/pci/fixups-sdk7780.c | |
parent | 7e4ba0d77c96d328ba968ddff4a464d4d2fa7abc (diff) |
sh: pci: Set class/sub-class code correctly for SH7780 PCIC.
The SH7780 PCI host controller implements a configuration header that
requires a fair bit of hand-holding to initialize properly. By default
it appears as a pre-2.0 host controller given the zeroed out class code,
so fix this up properly.
Some boards that happened to be using the R7780RP version of the PCIC
fixups had set this correctly, but this belongs in the standard
initialization, and is by no means board specific.
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.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sh/drivers/pci/fixups-sdk7780.c b/arch/sh/drivers/pci/fixups-sdk7780.c index c2957312b30b..004efd486ee3 100644 --- a/arch/sh/drivers/pci/fixups-sdk7780.c +++ b/arch/sh/drivers/pci/fixups-sdk7780.c | |||
@@ -16,8 +16,6 @@ | |||
16 | 16 | ||
17 | int pci_fixup_pcic(struct pci_channel *chan) | 17 | int pci_fixup_pcic(struct pci_channel *chan) |
18 | { | 18 | { |
19 | ctrl_outl(0x00000001, SH7780_PCI_VCR2); | ||
20 | |||
21 | /* Enable all interrupts, so we know what to fix */ | 19 | /* Enable all interrupts, so we know what to fix */ |
22 | pci_write_reg(chan, 0x0000C3FF, SH7780_PCIIMR); | 20 | pci_write_reg(chan, 0x0000C3FF, SH7780_PCIIMR); |
23 | pci_write_reg(chan, 0x0000380F, SH7780_PCIAINTM); | 21 | pci_write_reg(chan, 0x0000380F, SH7780_PCIAINTM); |
@@ -26,8 +24,6 @@ int pci_fixup_pcic(struct pci_channel *chan) | |||
26 | pci_write_reg(chan, 0xFB00, SH7780_PCISTATUS); | 24 | pci_write_reg(chan, 0xFB00, SH7780_PCISTATUS); |
27 | pci_write_reg(chan, 0x0047, SH7780_PCICMD); | 25 | pci_write_reg(chan, 0x0047, SH7780_PCICMD); |
28 | pci_write_reg(chan, 0x00, SH7780_PCIPIF); | 26 | pci_write_reg(chan, 0x00, SH7780_PCIPIF); |
29 | pci_write_reg(chan, 0x00, SH7780_PCISUB); | ||
30 | pci_write_reg(chan, 0x06, SH7780_PCIBCC); | ||
31 | pci_write_reg(chan, 0x1912, SH7780_PCISVID); | 27 | pci_write_reg(chan, 0x1912, SH7780_PCISVID); |
32 | pci_write_reg(chan, 0x0001, SH7780_PCISID); | 28 | pci_write_reg(chan, 0x0001, SH7780_PCISID); |
33 | 29 | ||