au1000: build fails if the input layer is not selected
[openwrt-working-2016/.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