summaryrefslogtreecommitdiff
path: root/arch/mips/include
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-09-01 16:46:00 (GMT)
committerRalf Baechle <ralf@linux-mips.org>2012-10-01 09:36:34 (GMT)
commit65fc7f9957c52ad4fdf4ee5dfe3a75aa0a633d39 (patch)
treea5c67f2eaf738fe04262206b4fda402a6166dc22 /arch/mips/include
parentd21a7713464c7d35b2cce1fe7f7d87928d6a047e (diff)
downloadlinux-fsl-qoriq-65fc7f9957c52ad4fdf4ee5dfe3a75aa0a633d39.tar.xz
MIPS: ath79: use correct fractional dividers for {CPU,DDR}_PLL on AR934x
The current dividers in the code are wrong and this leads to broken CPU frequency calculation on boards where the fractional part is used. For example, if the SoC is running from a 40MHz reference clock, refdiv=1, nint=14, outdiv=0 and nfrac=31 the real frequency is 579.375MHz but the current code calculates 569.687MHz instead. Because the system time is indirectly related to the CPU frequency the broken computation causes drift in the system time. The correct divider is 2^6 for the CPU PLL and 2^10 for the DDR PLL. Use the correct values to fix the issue. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: stable@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/4305/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
0 files changed, 0 insertions, 0 deletions