summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2021-12-24 10:25:31 +0300
committerTom Rini <trini@konsulko.com>2022-01-15 18:38:26 +0300
commit70bcd249f4726358e412216edfc5fd72165e2c48 (patch)
tree9dc5849e7a3b72d4952193aae12a68e64efed4a4
parent38922b1f4acc0ae80c58a3baae9134b02defece7 (diff)
downloadu-boot-70bcd249f4726358e412216edfc5fd72165e2c48.tar.xz
board: ti: am64x: Init DRAM size in R5/A53 SPL
Call dram_init_banksize() from spl_board_init() otherwise TFTP download fails 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 AM64x. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
-rw-r--r--board/ti/am64x/evm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c
index 1a9f69c6cf..8373c768f1 100644
--- a/board/ti/am64x/evm.c
+++ b/board/ti/am64x/evm.c
@@ -196,5 +196,8 @@ void spl_board_init(void)
val = readl(CTRLMMR_USB0_PHY_CTRL);
val &= ~(CORE_VOLTAGE);
writel(val, CTRLMMR_USB0_PHY_CTRL);
+
+ /* Init DRAM size for R5/A53 SPL */
+ dram_init_banksize();
}
#endif