summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/107-mt7628-sysclk.patch
blob: 15e51500dadecd4496e7da33defc3a26ec17c2e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: linux-3.10.14/arch/mips/ralink/init.c
===================================================================
--- linux-3.10.14.orig/arch/mips/ralink/init.c
+++ linux-3.10.14/arch/mips/ralink/init.c
@@ -543,7 +543,7 @@ void prom_init_sysclk(void)
 #elif defined (CONFIG_RALINK_MT7628)
 	case 0:
 		reg = (*(volatile u32 *)(RALINK_SYSCTL_BASE + 0x10));
-		if (reg & 0x80)
+		if (reg & 0x40)
 		{
 			/* 40MHz Xtal */
 			mips_cpu_feq = 580 * 1000 * 1000;