]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mediatek: fix ram init for mt7622 (decrease to 1G)
authorFrank Wunderlich <frank-w@public-files.de>
Sat, 15 Jun 2024 09:34:56 +0000 (11:34 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 27 Jun 2024 16:52:39 +0000 (10:52 -0600)
RAM init on mt7622 based bananapi R64 is broken since v2023.10.

Increasing the mem-map does not help here, so i reduced the maximum
available ram in get_ram_size call from 2G to 1G (board has only 1G).

Fixes: 5fd6d4c7b3ad ("arm: mediatek: retrieve ram_base from dts node for armv8 platform")
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
arch/arm/mach-mediatek/mt7622/init.c

index 00d3eb9ce7a47503f8ca78e8a3cf9709cd3e8341..1f32ff947dcd3c067f5b8d2da1e18b92c2b33dbf 100644 (file)
@@ -28,7 +28,7 @@ int dram_init(void)
        if (ret)
                return ret;
 
-       gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_2G);
+       gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_1G);
 
        return 0;
 }