aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/au1000/patches
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-02-18 09:49:38 +0000
committerJohn Crispin <blogic@openwrt.org>2015-02-18 09:49:38 +0000
commitf7a684bcfce2978566da0532684beef134a0ce0a (patch)
treedc2961fbb7a5ab244c6b4edc3ac2e660c0204870 /target/linux/au1000/patches
parenteb2b29b2e5b8be03b537f0c9250c86e65f29cc91 (diff)
downloadmaster-187ad058-f7a684bcfce2978566da0532684beef134a0ce0a.tar.gz
master-187ad058-f7a684bcfce2978566da0532684beef134a0ce0a.tar.bz2
master-187ad058-f7a684bcfce2978566da0532684beef134a0ce0a.zip
au1000: fix 3.18 and set it as default
Thanks to Bruno Randolf for testing and Manuel Lauss for providing a fix. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44487 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/au1000/patches')
-rw-r--r--target/linux/au1000/patches/005-fix-cpu-clk.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/au1000/patches/005-fix-cpu-clk.patch b/target/linux/au1000/patches/005-fix-cpu-clk.patch
new file mode 100644
index 0000000000..b925638817
--- /dev/null
+++ b/target/linux/au1000/patches/005-fix-cpu-clk.patch
@@ -0,0 +1,11 @@
+--- a/arch/mips/alchemy/common/clock.c
++++ b/arch/mips/alchemy/common/clock.c
+@@ -128,6 +128,8 @@
+ t = 396000000;
+ else {
+ t = alchemy_rdsys(AU1000_SYS_CPUPLL) & 0x7f;
++ if (alchemy_get_cputype() != ALCHEMY_CPU_AU1300)
++ t &= 0x3f;
+ t *= parent_rate;
+ }
+