]> git.baikalelectronics.ru Git - uboot.git/commit
arm64: mvebu: handle non-zero base address for RAM
authorChris Packham <judge.packham@gmail.com>
Fri, 20 May 2022 04:39:22 +0000 (16:39 +1200)
committerStefan Roese <sr@denx.de>
Thu, 21 Jul 2022 05:46:10 +0000 (07:46 +0200)
commitcb0132ec163571b7904c94c7c73d443d36fdb31a
tree68434ba28e6e6472779d0cdb4f0f57f9948198b5
parent892a52101f7535efd22c73b396b8402e7a7739f6
arm64: mvebu: handle non-zero base address for RAM

board_get_usable_ram_top() conflated the RAM size with the top address
of RAM. On systems where RAM starts at address 0 these numbers are the
same so it went unnoticed. Update board_get_usable_ram_top() to take
CONFIG_SYS_SDRAM_BASE into account when determining the top address.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/arm64-common.c