]> git.baikalelectronics.ru Git - uboot.git/commit
arm: highbank: Do DRAM init from DT
authorAndre Przywara <andre.przywara@arm.com>
Mon, 12 Apr 2021 00:04:54 +0000 (01:04 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 20 Apr 2021 11:31:12 +0000 (07:31 -0400)
commit4f1ded180615745160a248d1f80f20466eac8309
tree8e75aa57c2e2fcb122e7f740166d5a5bfcb36346
parent4a70079ba3a49890616726de8ad7db730a9d1604
arm: highbank: Do DRAM init from DT

So far U-Boot was hard coding a (surely sufficient) memory size of 512
MB, even though all machines out there have at least 4GB of DRAM.
Since U-Boot uses its memory knowledge to populate the EFI memory map,
we are missing out here, at best losing everything beyond 4GB on Midway
boxes (which typically come with 8GB of DRAM).

Since the management processor populated the DT memory node already with
the detected DRAM size and configuration, we use that to populate
U-Boot's memory bank information, which is the base for the UEFI memory
map.
This finally allows us to get rid of the NR_DRAM_BANKS=0 hack, that we
had in place to avoid U-Boot messing up the DT memory node before
loading the kernel.

Also, to cover the whole of memory, we need to enable PHYS_64BIT.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/Kconfig
board/highbank/highbank.c
configs/highbank_defconfig