From 91729f824b877f642e7d7aa09cbe938f4d9cc893 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sat, 31 May 2025 00:03:39 +0200 Subject: [PATCH] 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 --- board/renesas/common/rcar64-common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/renesas/common/rcar64-common.c b/board/renesas/common/rcar64-common.c index 69229ea3cb0..bcb03792494 100644 --- a/board/renesas/common/rcar64-common.c +++ b/board/renesas/common/rcar64-common.c @@ -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; } -- 2.47.2