]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: ath79: Fix CPU/DDR frequency calculation for SRIF PLLs
authorGabor Juhos <juhosg@openwrt.org>
Sat, 8 Sep 2012 12:02:21 +0000 (14:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:32:42 +0000 (09:32 -0700)
commitc71964b93fde02f9607e49191d55bd430767892c
tree88189e60d1c9041e2700993291f71f60c6fa7949
parentac43c058283e037c5acdee95ada41075e0e2dde5
MIPS: ath79: Fix CPU/DDR frequency calculation for SRIF PLLs

commit 97541ccfb9db2bb9cd1dde6344d5834438d14bda upstream.

Besides the CPU and DDR PLLs, the CPU and DDR frequencies
can be derived from other PLLs in the SRIF block on the
AR934x SoCs. The current code does not checks if the SRIF
PLLs are used and this can lead to incorrectly calculated
CPU/DDR frequencies.

Fix it by calculating the frequencies from SRIF PLLs if
those are used on a given board.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4324/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/ath79/clock.c
arch/mips/include/asm/mach-ath79/ar71xx_regs.h