[PATCH v2 01/10] common: spl: spl: Init DRAM size in R5/A53 SPL

Chintan Vankar
2024-04-25T12:09:07Z

Initialize DRAM size in SPL stage since networking requires DDR
to be initialized.

Signed-off-by: Chintan Vankar <c-vankar@ti.com>
---

Link to v1:
https://lore.kernel.org/r/20240112064759.1801600-2-s-vadapalli@ti.com/

Changes from v1 to v2:
- Updated dram_init_banksize() function to be called from common section
instead of board specific function call as suggested by Tom.

common/spl/spl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/spl.c b/common/spl/spl.c
index e06bc75d36..2a9d58195c 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -718,7 +718,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
initr_watchdog();

if (IS_ENABLED(CONFIG_SPL_OS_BOOT) || CONFIG_IS_ENABLED(HANDOFF) ||
- IS_ENABLED(CONFIG_SPL_ATF))
+ IS_ENABLED(CONFIG_SPL_ATF) || IS_ENABLED(CONFIG_SPL_NET))
dram_init_banksize();

if (CONFIG_IS_ENABLED(PCI) && !(gd->flags & GD_FLG_DM_DEAD)) {
--
2.34.1