board: verdin-am62: add dram_init_banksize
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Mon, 10 Feb 2025 07:27:47 +0000 (08:27 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 19 Feb 2025 13:41:11 +0000 (07:41 -0600)
commit3f866c47b58236d15a4ff761dd62e8955d7826b3
treed172b3d828994760766dabb4d06435f0ae46d227
parent7a45cb4ffeff034304789954bb222ddd7d02104a
board: verdin-am62: add dram_init_banksize

Add the dram_init_banksize function to the board file to properly set
DRAM memory sizes during boot.

The commit bc07851897bd ("board: ti: Pull redundant DDR functions to a
common location and Fixup DDR size when ECC is enabled") relocated the
dram_init_banksize function from architecture specific initialization to
the TI board initialization code. As a result, boards relying on the
previous setup now require this function to be defined within their
board file to handle DRAM sizing correctly.

Without this function defined the following error appears during boot:
    ERROR: Failed to allocate 0x1000 bytes below 0x0.

Fixes: bc07851897bd ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled")
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com>
board/toradex/verdin-am62/verdin-am62.c