board: ti: am62x: Init DRAM size in R5/A53 SPL

Call dram_init_banksize() from spl_board_init() otherwise TFTP download
fails with error "TFTP error: trying to overwrite reserved memory..."
due to lmb_get_free_size() not able to find unreserved region due
to lack of DRAM size info. Required to support Ethernet boot on AM62x.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
This commit is contained in:
Kishon Vijay Abraham I 2023-06-20 16:22:17 +05:30 committed by Praneeth Bajjuri
parent a7976fc356
commit 89e5fca159
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ void spl_board_init(void)
if (IS_ENABLED(CONFIG_SPL_SPLASH_SCREEN) && IS_ENABLED(CONFIG_SPL_BMP))
splash_display();
if (IS_ENABLED(CONFIG_SPL_ETH))
/* Init DRAM size for R5/A53 SPL */
dram_init_banksize();
}
#if defined(CONFIG_K3_AM64_DDRSS)