diff options
Diffstat (limited to 'arch/arm/mach-kirkwood/pcie.c')
-rw-r--r-- | arch/arm/mach-kirkwood/pcie.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/pcie.c b/arch/arm/mach-kirkwood/pcie.c index 7f43e6c2f8c0..ddcb09f5bdd3 100644 --- a/arch/arm/mach-kirkwood/pcie.c +++ b/arch/arm/mach-kirkwood/pcie.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/pci.h> | 12 | #include <linux/pci.h> |
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
14 | #include <linux/clk.h> | 14 | #include <linux/clk.h> |
15 | #include <linux/mbus.h> | ||
15 | #include <video/vga.h> | 16 | #include <video/vga.h> |
16 | #include <asm/irq.h> | 17 | #include <asm/irq.h> |
17 | #include <asm/mach/pci.h> | 18 | #include <asm/mach/pci.h> |
@@ -253,6 +254,27 @@ static void __init add_pcie_port(int index, void __iomem *base) | |||
253 | 254 | ||
254 | void __init kirkwood_pcie_init(unsigned int portmask) | 255 | void __init kirkwood_pcie_init(unsigned int portmask) |
255 | { | 256 | { |
257 | mvebu_mbus_add_window_remap_flags("pcie0.0", | ||
258 | KIRKWOOD_PCIE_IO_PHYS_BASE, | ||
259 | KIRKWOOD_PCIE_IO_SIZE, | ||
260 | KIRKWOOD_PCIE_IO_BUS_BASE, | ||
261 | MVEBU_MBUS_PCI_IO); | ||
262 | mvebu_mbus_add_window_remap_flags("pcie0.0", | ||
263 | KIRKWOOD_PCIE_MEM_PHYS_BASE, | ||
264 | KIRKWOOD_PCIE_MEM_SIZE, | ||
265 | MVEBU_MBUS_NO_REMAP, | ||
266 | MVEBU_MBUS_PCI_MEM); | ||
267 | mvebu_mbus_add_window_remap_flags("pcie1.0", | ||
268 | KIRKWOOD_PCIE1_IO_PHYS_BASE, | ||
269 | KIRKWOOD_PCIE1_IO_SIZE, | ||
270 | KIRKWOOD_PCIE1_IO_BUS_BASE, | ||
271 | MVEBU_MBUS_PCI_IO); | ||
272 | mvebu_mbus_add_window_remap_flags("pcie1.0", | ||
273 | KIRKWOOD_PCIE1_MEM_PHYS_BASE, | ||
274 | KIRKWOOD_PCIE1_MEM_SIZE, | ||
275 | MVEBU_MBUS_NO_REMAP, | ||
276 | MVEBU_MBUS_PCI_MEM); | ||
277 | |||
256 | vga_base = KIRKWOOD_PCIE_MEM_PHYS_BASE; | 278 | vga_base = KIRKWOOD_PCIE_MEM_PHYS_BASE; |
257 | 279 | ||
258 | if (portmask & KW_PCIE0) | 280 | if (portmask & KW_PCIE0) |