sh: Fix up multi-resource mapping for SH7786 PCIe.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 10 Feb 2010 07:00:58 +0000 (16:00 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 10 Feb 2010 07:00:58 +0000 (16:00 +0900)
commit7578a4c625a5cc32812946338a4549f3090be113
treedbd53333f97fc2af6818e8bfac50d02917cf1583
parent801cd56e3e2c2b727399d2c50c50139b2d7c98e8
sh: Fix up multi-resource mapping for SH7786 PCIe.

This reworks some of the SH7786 PCIe initialization code to dynamically
setup and size the various resource windows, as opposed to the original
code that simply wired in a couple of them statically.

At the same time, we tidy up the initialization code a bit, kill off some
read-only register twiddling that was gleaned from the bus analyzer, and
also propagate the physical slot/channel mapping.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/pcie-sh7786.c
arch/sh/drivers/pci/pcie-sh7786.h