[PATCH 14/17] arm: mediatek: mt8512: drop dram_init_banksize()
David Lechner
dlechner at baylibre.com
Thu Mar 19 21:00:17 CET 2026
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.
Signed-off-by: David Lechner <dlechner at baylibre.com>
---
arch/arm/mach-mediatek/mt8512/init.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/arm/mach-mediatek/mt8512/init.c b/arch/arm/mach-mediatek/mt8512/init.c
index 361c589cbc2..bc1d515fcca 100644
--- a/arch/arm/mach-mediatek/mt8512/init.c
+++ b/arch/arm/mach-mediatek/mt8512/init.c
@@ -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;
--
2.43.0
More information about the U-Boot
mailing list