diff mbox series

[v3,01/10] common: spl: spl: Init DRAM size in R5/A53 SPL

Message ID 20240705045030.1141934-2-c-vankar@ti.com
State Changes Requested
Delegated to: Tom Rini
Headers show
Series Add support for Ethernet Boot on SK-AM62 | expand

Commit Message

Chintan Vankar July 5, 2024, 4:50 a.m. UTC
Initialize DRAM size in SPL stage since networking requires DDR
to be initialized.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Chintan Vankar <c-vankar@ti.com>
---

Link to v2:
https://lore.kernel.org/r/20240425120822.2048012-2-c-vankar@ti.com/

Changes from v2 to v3:
- No changes.

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

Comments

Dhruva Gole July 5, 2024, 5:50 a.m. UTC | #1
On Jul 05, 2024 at 10:20:21 +0530, Chintan Vankar wrote:
> Initialize DRAM size in SPL stage since networking requires DDR
> to be initialized.
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
> Signed-off-by: Chintan Vankar <c-vankar@ti.com>
> ---
> 

Reviewed-by: Dhruva Gole <d-gole@ti.com>

Best regards,
Dhruva

> Link to v2:
> https://lore.kernel.org/r/20240425120822.2048012-2-c-vankar@ti.com/
> 
> Changes from v2 to v3:
> - No changes.
> 
>  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 7794ddccad..5914eb8205 100644
> --- a/common/spl/spl.c
> +++ b/common/spl/spl.c
> @@ -720,7 +720,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
>
Tom Rini July 5, 2024, 3:37 p.m. UTC | #2
On Fri, Jul 05, 2024 at 10:20:21AM +0530, Chintan Vankar wrote:

> Initialize DRAM size in SPL stage since networking requires DDR
> to be initialized.
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
> Signed-off-by: Chintan Vankar <c-vankar@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox series

Patch

diff --git a/common/spl/spl.c b/common/spl/spl.c
index 7794ddccad..5914eb8205 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -720,7 +720,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)) {