diff options
author | Baruch Siach <baruch@tkos.co.il> | 2018-11-11 12:31:04 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2018-11-20 13:08:15 +0100 |
commit | 2b4d964718c0e78a24f3a5e051e7dd9bc0e547c2 (patch) | |
tree | 802fdd9b47d09b30c9fa8097fa282aea6b7825a7 /configs/spear310_usbtty_pnor_defconfig | |
parent | b335e91bd1e92c685c4133671119fa37c4ab43cb (diff) |
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>
Diffstat (limited to 'configs/spear310_usbtty_pnor_defconfig')
0 files changed, 0 insertions, 0 deletions