arm64: renesas: Introduce renesas_dram_init_banksize()

Introduce weak renesas_dram_init_banksize() function which is meant
to be used to adjust DRAM bank sizes after the common Renesas board
DRAM bank handling code finished. This is mainly meant for boards
which ship with multiple DRAM size options, which can be detected
at runtime. This allows such boards to ship with single U-Boot
binary on all boards.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
Marek Vasut
2025-05-31 00:03:39 +02:00
parent d7c449c3d8
commit 91729f824b

View File

@@ -36,6 +36,8 @@ int dram_init(void)
return ret;
}
__weak void renesas_dram_init_banksize(void) { }
int dram_init_banksize(void)
{
int bank;
@@ -58,6 +60,8 @@ int dram_init_banksize(void)
break;
}
renesas_dram_init_banksize();
return 0;
}