]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: renesas: Introduce renesas_dram_init_banksize()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 30 May 2025 22:03:39 +0000 (00:03 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 10 Jun 2025 18:50:50 +0000 (20:50 +0200)
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>
board/renesas/common/rcar64-common.c

index 69229ea3cb01f5262889cbe2c6e56e4ca4ee1a89..bcb037924948b92908ae049562022c626e315f15 100644 (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;
 }