summaryrefslogtreecommitdiff
path: root/board/ti/am62x/evm.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2023-06-20 16:22:17 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2023-06-20 15:31:14 -0500
commit89e5fca1594e8b4ebcd68376a52daf6139f1a431 (patch)
tree89122c5f4e7a9dc478ab1e8a91d0380f8f429fcc /board/ti/am62x/evm.c
parenta7976fc35633dfe5af04869a8c912af561a0bf35 (diff)
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>
Diffstat (limited to 'board/ti/am62x/evm.c')
-rw-r--r--board/ti/am62x/evm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c
index 0a5b401c14..a2cddb477d 100644
--- a/board/ti/am62x/evm.c
+++ b/board/ti/am62x/evm.c
@@ -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)