sh: pci: Support slot 4 routing on SDK7786.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 13 Oct 2010 22:37:01 +0000 (07:37 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 13 Oct 2010 22:37:01 +0000 (07:37 +0900)
commit61a46766c9d5d8fb5dad23da1b7cc4cb8b0107da
tree6b91ef707e1a1e4d202ab817ac066509a72b1c8b
parentf7fcec93b619337feb9da829b8a9ab6ba86393bc
sh: pci: Support slot 4 routing on SDK7786.

SDK7786 supports connecting either slot3 or 4 to the same PCIe port by
way of FPGA muxing. By default the vertical slot 3 on the baseboard is
enabled, so this adds in a command line option for forcibly enabling the
slot 4 edge connector.

If nothing has been specified on the command line, we fall back to
reading the resistor values for card presence to figure out where to
route the port to.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/Makefile
arch/sh/drivers/pci/fixups-sdk7786.c [new file with mode: 0644]
arch/sh/drivers/pci/pci.c
arch/sh/include/mach-sdk7786/mach/fpga.h