arm64: mvebu: Add regions for PCI spaces to the memory map
authorStefan Roese <sr@denx.de>
Thu, 27 Oct 2016 11:34:03 +0000 (13:34 +0200)
committerStefan Roese <sr@denx.de>
Mon, 5 Dec 2016 12:34:33 +0000 (13:34 +0100)
To use the PCIe driver, its controller memory and the PCIe regions need
to get mapped in the MMU. Otherwise these areas can't be accessed.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Nadav Haklai <nadavh@marvell.com>
Cc: Neta Zur Hershkovits <neta@marvell.com>
Cc: Kostya Porotchkin <kostap@marvell.com>
Cc: Omri Itach <omrii@marvell.com>
Cc: Igal Liberman <igall@marvell.com>
Cc: Haim Boot <hayim@marvell.com>
Cc: Hanna Hawa <hannah@marvell.com>
arch/arm/mach-mvebu/armada8k/cpu.c

index f8e69d6..2719d68 100644 (file)
@@ -55,6 +55,14 @@ static struct mm_region mvebu_mem_map[] = {
                         PTE_BLOCK_NON_SHARE
        },
        {
+               /* PCI regions */
+               .phys = 0xf8000000UL,
+               .virt = 0xf8000000UL,
+               .size = 0x08000000UL,   /* 128MiB PCI space (master & slave) */
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+                        PTE_BLOCK_NON_SHARE
+       },
+       {
                /* List terminator */
                0,
        }