mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
12 lines
267 B
Diff
12 lines
267 B
Diff
--- 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;
|
|
}
|
|
|