From 790af494ca375be973ab3b4e8ee63cb2dc881876 Mon Sep 17 00:00:00 2001 From: xiaolong-long <81570744+xiaolong-long@users.noreply.github.com> Date: Tue, 30 Mar 2021 00:31:04 +0800 Subject: [PATCH 1/2] Update init.c --- trunk/linux-3.4.x/arch/mips/rt2880/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/linux-3.4.x/arch/mips/rt2880/init.c b/trunk/linux-3.4.x/arch/mips/rt2880/init.c index 0210ada1ca1..f3378622f7c 100644 --- a/trunk/linux-3.4.x/arch/mips/rt2880/init.c +++ b/trunk/linux-3.4.x/arch/mips/rt2880/init.c @@ -551,9 +551,9 @@ static void prom_init_sysclk(void) case 1: /* CPU PLL */ reg = (*(volatile u32 *)(RALINK_MEMCTRL_BASE + 0x648)); #if defined(CONFIG_RALINK_MT7621_PLL900) - if ((reg & 0xff) != 0xc2) { - reg &= ~(0xff); - reg |= (0xc2); + if ((reg & 0x7ff) != 0x362) { + reg &= ~(0x7ff); + reg |= (0x362); (*((volatile u32 *)(RALINK_MEMCTRL_BASE + 0x648))) = reg; udelay(10); } From ea58345f883f2e8c1f09242073688e0f9e2bbf64 Mon Sep 17 00:00:00 2001 From: xiaolong-long <81570744+xiaolong-long@users.noreply.github.com> Date: Tue, 30 Mar 2021 00:35:36 +0800 Subject: [PATCH 2/2] Update MI-R3G.config --- trunk/configs/templates/MI-R3G.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/configs/templates/MI-R3G.config b/trunk/configs/templates/MI-R3G.config index bb5852e39e7..362ac5e48fb 100644 --- a/trunk/configs/templates/MI-R3G.config +++ b/trunk/configs/templates/MI-R3G.config @@ -19,7 +19,7 @@ CONFIG_TOOLCHAIN_DIR=/opt/rt-n56u/toolchain-mipsel #CONFIG_FIRMWARE_TYPE_ROOTFS_IN_RAM=y ### Force MT7621 CPU clock to 900MHz (override Uboot settings) -#CONFIG_FIRMWARE_CPU_900MHZ=y +CONFIG_FIRMWARE_CPU_900MHZ=y ### Enable MT7621 CPU sleep mode (downclock to 220MHz on idle) #CONFIG_FIRMWARE_CPU_SLEEP=y