]> git.baikalelectronics.ru Git - uboot.git/commit
board: gateworks: venice: determine dram size at runtime
authorTim Harvey <tharvey@gateworks.com>
Wed, 30 Mar 2022 20:39:02 +0000 (13:39 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 31 Mar 2022 12:27:52 +0000 (08:27 -0400)
commit44631b2574f8b1345ccc44abe7170f6ce05930a3
tree37fd38e4ec59c6abcf1cc9c23c5bef1c09393dd4
parentfd806e4835590795f99588a61bc5e4b57f0f24de
board: gateworks: venice: determine dram size at runtime

The SPL does not update the memory node with the dram size from EEPROM
but instead we can use get_ram_size which does a simple memory test
to determine the available RAM. Update PHYS_SDRAM_SIZE to 4GiB as that
is the max used on the Venice boards.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
board/gateworks/venice/venice.c
include/configs/imx8mm_venice.h
include/configs/imx8mn_venice.h