]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: spl: spl: Init DRAM size in R5/A53 SPL
authorChintan Vankar <c-vankar@ti.com>
Mon, 26 Aug 2024 10:25:05 +0000 (15:55 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 30 Aug 2024 19:57:39 +0000 (13:57 -0600)
Initialize DRAM size in SPL stage since networking requires DDR
to be initialized.

Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Chintan Vankar <c-vankar@ti.com>
common/spl/spl.c

index 7c6e322ffd7fdb6f48c109e59374d24855202ade..43a29db23bda27dc497b826e48283edc9e92f0c4 100644 (file)
@@ -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)) {