]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: mt7628: fix the displayed DDR type of mt7628
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 5 Mar 2021 03:13:27 +0000 (11:13 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 22 Apr 2021 00:44:42 +0000 (02:44 +0200)
The MT7688KN is a multi-chip package with 8MiB DDR1 KGD. So the DDR type
from bootstrap register must be ignored, and always be assumed as DDR1.

This patch fixes the displayed DDR type of mt7628.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/mips/mach-mtmips/mt7628/init.c

index 7c531ff6867985b2d05b2ee6ea1c9735fcc74099..6b535129df12941cd80c1cc4f066fce0f9f44a8f 100644 (file)
@@ -68,6 +68,9 @@ int print_cpuinfo(void)
        val = readl(sysc + SYSCTL_EFUSE_CFG_REG);
        ee = val & EFUSE_MT7688;
 
+       if (pkg == PKG_ID_KN)
+               ddr = DRAM_DDR1;
+
        printf("CPU:   MediaTek MT%u%c ver:%u eco:%u\n",
               ee ? 7688 : 7628, pkg ? 'A' : 'K', ver, eco);