au1000: fix 3.18 and set it as default
[openwrt/openwrt.git] / target / linux / au1000 / patches / 005-fix-cpu-clk.patch
1 --- a/arch/mips/alchemy/common/clock.c
2 +++ b/arch/mips/alchemy/common/clock.c
3 @@ -128,6 +128,8 @@
4 t = 396000000;
5 else {
6 t = alchemy_rdsys(AU1000_SYS_CPUPLL) & 0x7f;
7 + if (alchemy_get_cputype() != ALCHEMY_CPU_AU1300)
8 + t &= 0x3f;
9 t *= parent_rate;
10 }
11