From: Stefan Roese Date: Thu, 27 Oct 2016 11:34:03 +0000 (+0200) Subject: arm64: mvebu: Add regions for PCI spaces to the memory map X-Git-Tag: v2017.01-rc1~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6324fdc547d9596aa25566876aa862ecb83b802c;p=u-boot arm64: mvebu: Add regions for PCI spaces to the memory map 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 Cc: Nadav Haklai Cc: Neta Zur Hershkovits Cc: Kostya Porotchkin Cc: Omri Itach Cc: Igal Liberman Cc: Haim Boot Cc: Hanna Hawa --- diff --git a/arch/arm/mach-mvebu/armada8k/cpu.c b/arch/arm/mach-mvebu/armada8k/cpu.c index f8e69d65e9..2719d68e07 100644 --- a/arch/arm/mach-mvebu/armada8k/cpu.c +++ b/arch/arm/mach-mvebu/armada8k/cpu.c @@ -54,6 +54,14 @@ static struct mm_region mvebu_mem_map[] = { .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | 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,