u-boot/arch/arm/mach-mvebu
Baruch Siach 2b4d964718 arm64: mvebu: a8k: autodetect RAM size
Some Armada 8K boards like Macchiatobin and Clearfog GT-8K use RAM from
external DIMM. Hard coding the RAM size in the device-tree is not
convenient. Fortunately, the ATF that initializes the RAM knows the size
of RAM, and U-Boot can query the ATF using a SMC call.

The ATF maps the lower 3G of RAM starting at address 0. Higher RAM is
mapped at 4G. This leaves a 1G hole between 3G and 4G for IO
peripherals. Use a second bi_dram[] entry to describe the higher RAM
area. As a result, CONFIG_NR_DRAM_BANKS must be set to 2 to use more
than 3GB RAM.

This code in this commit is mostly taken from downstream Marvell U-Boot
code by Grzegorz Jaszczyk.

Cc: Grzegorz Jaszczyk <jaz@semihalf.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Stefan Roese <sr@denx.de>
2018-11-20 13:08:15 +01:00
..
armada8k arm64: mvebu: armada-8k: support environment in SD/eMMC 2018-09-19 08:59:26 +02:00
armada3700 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
include/mach arm: mvebu: Move PCI(e) MBUS window to end of RAM 2018-11-06 13:21:13 +01:00
serdes mvebu: a38x: Force receiver detected on PCIe lanes 2018-06-05 07:25:42 +02:00
.gitignore mvebu: select boot device at SoC level 2018-08-06 14:07:23 +02:00
arm64-common.c arm64: mvebu: a8k: autodetect RAM size 2018-11-20 13:08:15 +01:00
cpu.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram.c arm: mvebu: Move PCI(e) MBUS window to end of RAM 2018-11-06 13:21:13 +01:00
efuse.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig mvebu: support UART boot image 2018-08-06 14:07:23 +02:00
kwbimage.cfg.in mvebu: select boot device at SoC level 2018-08-06 14:07:23 +02:00
lowlevel_spl.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile mvebu: support UART boot image 2018-08-06 14:07:23 +02:00
mbus.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.c ARM: mach-mvebu: handle fall-back to UART boot 2018-09-19 08:59:26 +02:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00