[PATCH v2] board: gateworks: venice: determine dram size at runtime

Tim Harvey tharvey at gateworks.com
Wed Mar 30 23:59:08 CEST 2022


On Wed, Mar 30, 2022 at 1:58 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Tim,
>
> On Wed, Mar 30, 2022 at 5:39 PM Tim Harvey <tharvey at gateworks.com> wrote:
> >
> > 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 at gateworks.com>
> > Reviewed-by: Fabio Estevam <festevam at denx.de>
>
> Is this 2022.04 material?

Fabio,

Probably a good idea - without it the DRAM size is set to something
that may not be appropriate and if larger than what's actually on the
board could cause a crash if someone tried to allocate that memory.

Fixes: 692c25ee30efd "(board: gateworks: venice: get mem size from dt)"

Thanks,

Tim


More information about the U-Boot mailing list