]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: mediatek: mt7987: drop dram_init_banksize()
authorDavid Lechner <dlechner@baylibre.com>
Thu, 19 Mar 2026 20:00:04 +0000 (15:00 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Mon, 6 Apr 2026 23:39:10 +0000 (18:39 -0500)
Drop override of dram_init_banksize() weak function for mt7987. This is
effectively the same as the default implementation, so we do not need
to override it.

Reviewed-by: Julien Stephan <jstephan@baylibre.com>
Tested-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20260319-mtk-init-fix-dram-v1-1-6171ec141f40@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
arch/arm/mach-mediatek/mt7987/init.c

index 6364ab497f74abbfee1dd7cf2a3f9fa489de1ef0..f16a25843a90c9d1df8a0bb2cbd1fa0ed28618ca 100644 (file)
@@ -27,14 +27,6 @@ int dram_init(void)
        return 0;
 }
 
-int dram_init_banksize(void)
-{
-       gd->bd->bi_dram[0].start = gd->ram_base;
-       gd->bd->bi_dram[0].size = gd->ram_size;
-
-       return 0;
-}
-
 void reset_cpu(ulong addr)
 {
        psci_system_reset();