]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: Move PCI(e) MBUS window to end of RAM
authorStefan Roese <sr@denx.de>
Mon, 22 Oct 2018 12:21:17 +0000 (14:21 +0200)
committerStefan Roese <sr@denx.de>
Tue, 6 Nov 2018 12:21:13 +0000 (13:21 +0100)
commitdfc1924bdbf238cd43bc51c64034cb3e2d1e3d17
tree723faf1e159734467f090121d84d28b006698b0c
parent75c51ca8e80a5bdaece6d4127557593045c7ffb0
arm: mvebu: Move PCI(e) MBUS window to end of RAM

With patch c1f1641d41a2 (pci: mvebu: Increase size of PCIe default mapping)
the mapping size for each PCI(e) controller was increased from 32MiB to
128MiB. This leads to problems on boards with multiple PCIe slots / ports
which are unable to map all PCIe ports, e.g. the Armada-XP theadorable:

DRAM:  2 GiB (667 MHz, 64-bit, ECC not enabled)
SF: Detected m25p128 with page size 256 Bytes, erase size 256 KiB, total 16 MiB
Cannot add window '4:f8', conflicts with another window
PCIe unable to add mbus window for mem at f0000000+08000000
Model: Marvell Armada XP theadorable

This patch moves the base address for the PCI(e) memory spaces from
0xe8000000 to the end of SDRAM (clipped to a max of 0xc0000000 right now).
This gives move room and flexibility for PCI(e) mappings.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: VlaoMao <vlaomao@gmail.com>
Tested-by: VlaoMao <vlaomao at gmail.com>
arch/arm/mach-mvebu/dram.c
arch/arm/mach-mvebu/include/mach/cpu.h