ramips: fix mt7621 SoC detection
authorJohn Crispin <john@phrozen.org>
Mon, 4 Jul 2016 13:20:05 +0000 (15:20 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 5 Jul 2016 20:59:13 +0000 (22:59 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
target/linux/ramips/patches-4.4/0105-set_mt7621_soc_type.patch [new file with mode: 0644]

diff --git a/target/linux/ramips/patches-4.4/0105-set_mt7621_soc_type.patch b/target/linux/ramips/patches-4.4/0105-set_mt7621_soc_type.patch
new file mode 100644 (file)
index 0000000..0ffe825
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/arch/mips/ralink/mt7621.c
++++ b/arch/mips/ralink/mt7621.c
+@@ -180,7 +180,7 @@
+       } else {
+               panic("mt7621: unknown SoC, n0:%08x n1:%08x\n", n0, n1);
+       }
+-
++      ralink_soc = MT762X_SOC_MT7621AT;
+       rev = __raw_readl(sysc + SYSC_REG_CHIP_REV);
+       snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN,