Hello,

This is a patch to go in target/linux/lantiq/patches-3.14/

It corrects the fpi clock value on lantiq ar9. See this discussion
for further details:

https://lists.openwrt.org/pipermail/openwrt-devel/2015-January/030688.html


--- a/arch/mips/lantiq/xway/clk.c       2015-01-21 10:15:44.000000000 +0100
+++ b/arch/mips/lantiq/xway/clk.c       2015-01-21 10:17:29.000000000 +0100
@@ -104,8 +104,9 @@ unsigned long ltq_ar9_fpi_hz(void)
        unsigned long sys = ltq_ar9_sys_hz();
 
        if (ltq_cgu_r32(CGU_SYS) & BIT(0))
-               return sys;
-       return sys >> 1;
+               return sys / 3;
+       else
+               return sys / 2;
 }
 
 unsigned long ltq_ar9_cpu_hz(void)
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to