diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-13 23:52:43 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-02-14 00:25:32 -0500 |
commit | e036eaa681a17f71b64f6d9040fe605555623919 (patch) | |
tree | 6fe462fe6106e830f39abd25f0e1a4f8aff3cb5c /arch/sh/drivers/pci/fixups-rts7751r2d.c | |
parent | f99cb7a43c5cca1813a97312487acf7a0f88ee2a (diff) |
sh: use ctrl_in/out for on chip pci access
This patch makes sure ctrl_inN/outN are used instead of inN/outN for on chip
pci registers. Without this patch addresses may be adjusted using the value
in generic_io_base. This patch makes it possible to set generic_io_base and
have pci without reading and writing all over the place.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Katsuya MATSUBARA <matsu@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/fixups-rts7751r2d.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-rts7751r2d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/fixups-rts7751r2d.c b/arch/sh/drivers/pci/fixups-rts7751r2d.c index e72ceb560d5b..904bce8768d3 100644 --- a/arch/sh/drivers/pci/fixups-rts7751r2d.c +++ b/arch/sh/drivers/pci/fixups-rts7751r2d.c | |||
@@ -19,7 +19,7 @@ int pci_fixup_pcic(void) | |||
19 | { | 19 | { |
20 | unsigned long bcr1, mcr; | 20 | unsigned long bcr1, mcr; |
21 | 21 | ||
22 | bcr1 = inl(SH7751_BCR1); | 22 | bcr1 = ctrl_inl(SH7751_BCR1); |
23 | bcr1 |= 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ | 23 | bcr1 |= 0x40080000; /* Enable Bit 19 BREQEN, set PCIC to slave */ |
24 | pci_write_reg(bcr1, SH4_PCIBCR1); | 24 | pci_write_reg(bcr1, SH4_PCIBCR1); |
25 | 25 | ||
@@ -30,7 +30,7 @@ int pci_fixup_pcic(void) | |||
30 | pci_write_reg(0xfb900047, SH7751_PCICONF1); | 30 | pci_write_reg(0xfb900047, SH7751_PCICONF1); |
31 | pci_write_reg(0xab000001, SH7751_PCICONF4); | 31 | pci_write_reg(0xab000001, SH7751_PCICONF4); |
32 | 32 | ||
33 | mcr = inl(SH7751_MCR); | 33 | mcr = ctrl_inl(SH7751_MCR); |
34 | mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; | 34 | mcr = (mcr & PCIMCR_MRSET_OFF) & PCIMCR_RFSH_OFF; |
35 | pci_write_reg(mcr, SH4_PCIMCR); | 35 | pci_write_reg(mcr, SH4_PCIMCR); |
36 | 36 | ||