summaryrefslogtreecommitdiff
path: root/include/configs/db-88f6820-gp.h
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-11-11 12:31:04 +0200
committerStefan Roese <sr@denx.de>2018-11-20 13:08:15 +0100
commit2b4d964718c0e78a24f3a5e051e7dd9bc0e547c2 (patch)
tree802fdd9b47d09b30c9fa8097fa282aea6b7825a7 /include/configs/db-88f6820-gp.h
parentb335e91bd1e92c685c4133671119fa37c4ab43cb (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 'include/configs/db-88f6820-gp.h')
0 files changed, 0 insertions, 0 deletions