diff mbox series

[3/8] board: ti: am64x: Init DRAM size in R5/A53 SPL

Message ID 20211224072536.270251-4-vigneshr@ti.com
State Accepted
Commit 70bcd249f4726358e412216edfc5fd72165e2c48
Delegated to: Tom Rini
Headers show
Series ARM: ti: AM64x: Add Ethernet boot support on AM64x SK | expand

Commit Message

Raghavendra, Vignesh Dec. 24, 2021, 7:25 a.m. UTC
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>
---
 board/ti/am64x/evm.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini Jan. 17, 2022, 6:37 p.m. UTC | #1
On Fri, Dec 24, 2021 at 12:55:31PM +0530, Vignesh Raghavendra wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

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