]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm: kirkwood: move PCIe window init to legacy driver
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 15 May 2013 13:36:55 +0000 (15:36 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 20 May 2013 19:30:58 +0000 (19:30 +0000)
commit5aa6d3b0ce06c5b12c7a641e742949e26e3f969f
tree5f8b8c4db7b19ba788b26b5d73004754a507697c
parent450813e0afda7e6eb56080784808ae40445f48f1
arm: kirkwood: move PCIe window init to legacy driver

Since we are going to enable the usage of the mvebu PCIe driver on
Kirkwood, we don't want the PCIe windows to be unconditionally created
by kirkwood_setup_wins(). Therefore, we move the PCIe window
initialization into the legacy PCIe driver
(arch/arm/mach-kirkwood/pcie.c).

The platforms using the legacy driver will see their windows
statically allocated by
arch/arm/mach-kirkwood/pcie.c:kirkwood_pcie_init(). The platforms
using the new driver in drivers/pci/ will see their windows
dynamically allocated directly by the driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-kirkwood/common.c
arch/arm/mach-kirkwood/pcie.c