The dram_init_banksize API configures the dram banks inside gd->bd, so ensure bd is initialized by calling spl_set_bd as part of spl_enable_cache.
Signed-off-by: Anshul Dalal <[email protected]> --- arch/arm/mach-k3/common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 2f3df5519c5..39467c21679 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -418,6 +418,9 @@ void spl_enable_cache(void) gd->ram_top = CFG_SYS_SDRAM_BASE; int ret = 0; + /* dram_init_banksize populates bd, so init it first */ + spl_set_bd(); + dram_init(); dram_init_banksize(); --- base-commit: 1e240f7206fccde4ec73ea432ab8360d321c5fe5 change-id: 20260310-init_bd_before_dram_init-7a9c3ad0b311 Best regards, -- Anshul Dalal <[email protected]>

