sh: Enable PCI66 support for SH7780 host controller.

This adds some helper glue for scanning the bus and determining if all
of the devices are 66MHz capable or not before flipping on 66MHz mode.
This isn't quite to spec, but it's fairly consistent with what other
embedded controllers end up having to do.

Scanning code cribbed from the MIPS txx9 PCI code.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt
2010-02-01 13:01:42 +09:00
parent aee4467b5c
commit 85b59f5bb2
5 changed files with 98 additions and 1 deletions

View File

@@ -88,6 +88,8 @@ void __devinit register_pci_controller(struct pci_channel *hose)
mutex_unlock(&pci_scan_mutex);
}
return;
out:
printk(KERN_WARNING "Skipping PCI bus scan due to resource conflict\n");
}