diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-02-01 06:01:50 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-01 06:01:50 -0500 |
commit | b6c58b1d987a5795086c5c2babd8c7367d2fdb8c (patch) | |
tree | 3ec992af50f44dd09ff125165ea1c4ef41b2aecc /arch/sh/drivers/pci/fixups-se7751.c | |
parent | ef407beefbd9928792ccc93857e408e0057bc17b (diff) |
sh: Improved multi-resource handling for SH7780 PCI.
The SH7780 PCI controller supports 3 different ranges of PCI memory in
addition to its PCI I/O window. In the case of 29-bit mode, only 2 memory
windows are supported, while in 32-bit mode all 3 are visible. This
attempts to make the resource handling completely dynamic and to permit
platforms to map in as many apertures as they can handle.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/fixups-se7751.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-se7751.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/drivers/pci/fixups-se7751.c b/arch/sh/drivers/pci/fixups-se7751.c index 475fa9f0fe2c..a4c7d3a4efca 100644 --- a/arch/sh/drivers/pci/fixups-se7751.c +++ b/arch/sh/drivers/pci/fixups-se7751.c | |||
@@ -97,12 +97,12 @@ int pci_fixup_pcic(struct pci_channel *chan) | |||
97 | * meaning all calls go straight through... use BUG_ON to | 97 | * meaning all calls go straight through... use BUG_ON to |
98 | * catch erroneous assumption. | 98 | * catch erroneous assumption. |
99 | */ | 99 | */ |
100 | BUG_ON(chan->mem_resource->start != SH7751_PCI_MEMORY_BASE); | 100 | BUG_ON(chan->resources[1].start != SH7751_PCI_MEMORY_BASE); |
101 | 101 | ||
102 | PCIC_WRITE(SH7751_PCIMBR, chan->mem_resource->start); | 102 | PCIC_WRITE(SH7751_PCIMBR, chan->resources[1].start); |
103 | 103 | ||
104 | /* Set IOBR for window containing area specified in pci.h */ | 104 | /* Set IOBR for window containing area specified in pci.h */ |
105 | PCIC_WRITE(SH7751_PCIIOBR, (chan->io_resource->start & SH7751_PCIIOBR_MASK)); | 105 | PCIC_WRITE(SH7751_PCIIOBR, (chan->resources[0].start & SH7751_PCIIOBR_MASK)); |
106 | 106 | ||
107 | /* All done, may as well say so... */ | 107 | /* All done, may as well say so... */ |
108 | printk("SH7751 PCI: Finished initialization of the PCI controller\n"); | 108 | printk("SH7751 PCI: Finished initialization of the PCI controller\n"); |