]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: mediatek: mt8512: drop dram_init_banksize()
authorDavid Lechner <dlechner@baylibre.com>
Thu, 19 Mar 2026 20:00:17 +0000 (15:00 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Mon, 6 Apr 2026 23:39:11 +0000 (18:39 -0500)
Drop override of dram_init_banksize() weak function for mt8512. This is
exactly 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-14-6171ec141f40@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
arch/arm/mach-mediatek/mt8512/init.c

index 361c589cbc2d5f6dcef6f633cdb41de574fb6381..bc1d515fcca67c7b0966e2fb5c0f2442cc8b639e 100644 (file)
@@ -35,14 +35,6 @@ phys_size_t  get_effective_memsize(void)
        return gd->ram_size - 6 * SZ_1M;
 }
 
-int dram_init_banksize(void)
-{
-       gd->bd->bi_dram[0].start = gd->ram_base;
-       gd->bd->bi_dram[0].size = get_effective_memsize();
-
-       return 0;
-}
-
 void reset_cpu(void)
 {
        struct udevice *watchdog_dev = NULL;