sh: Enable PCI66 support for SH7780 host controller.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 1 Feb 2010 04:01:42 +0000 (13:01 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 1 Feb 2010 04:01:42 +0000 (13:01 +0900)
commit85b59f5bb24aeca1a987cbb206e228bf630c8327
tree0bf1e2e46f58d04f597cf62f0fbf8ae5d7ada52d
parentaee4467b5ce5047401efb4175b1360ec1734affc
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>
arch/sh/drivers/pci/Makefile
arch/sh/drivers/pci/common.c [new file with mode: 0644]
arch/sh/drivers/pci/pci-sh7780.c
arch/sh/drivers/pci/pci.c
arch/sh/include/asm/pci.h