Skip to contentSkip to conversation

mips: mt7628: fix the displayed DDR type of mt7628

PATCH New Weijie Gao 3 participants 3 messages Mar 5, 2021 – Apr 22, 2021

Subsystems (2)
lore
Share & tools
lore

Weijie Gao

author
#0 lore raw

PATCH 1/1 mips: mt7628: fix the displayed DDR type of mt7628

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.

---
 arch/mips/mach-mtmips/mt7628/init.c | 3 +++
 1 file changed, 3 insertions(+)
arch/mips/mach-mtmips/mt7628/init.c +3 -0
index 7c531ff686..6b535129df 100644
@@ -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);
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 mips: mt7628: fix the displayed DDR type of mt7628

Quoted 6 lines · Weijie Gao

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.

Thanks,
Stefan

#2 lore raw

PATCH 1/1 mips: mt7628: fix the displayed DDR type of mt7628

In reply to Weijie Gao

Am Freitag, den 05.03.2021, 11:13 +0800 schrieb Weijie Gao:

Quoted 5 lines

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.

Quoted 7 lines

This patch fixes the displayed DDR type of mt7628.

---
 arch/mips/mach-mtmips/mt7628/init.c | 3 +++
 1 file changed, 3 insertions(+)

applied to u-boot-mips, thanks.

Signature · 1 line
- Daniel