]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: iproc: Fix PLL output frequency calculation
authorSimran Rai <ssimran@broadcom.com>
Mon, 19 Oct 2015 22:27:19 +0000 (15:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:31:16 +0000 (14:31 -0500)
commit5e5ed96b6766aca3bab1972ee2602b96fa335c05
treee2f3db040713b873e6810f423ed14f68848a5373
parent8d7bdea211088ea3221a09563447ea3a19b82c41
clk: iproc: Fix PLL output frequency calculation

commit 63243a4da7d0dfa19dcacd0a529782eeb2f86f92 upstream.

This patch affects the clocks that use fractional ndivider in their
PLL output frequency calculation. Instead of 2^20 divide factor, the
clock's ndiv integer shift was used. Fixed the bug by replacing ndiv
integer shift with 2^20 factor.

Signed-off-by: Simran Rai <ssimran@broadcom.com>
Signed-off-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Fixes: 5fe225c105fd ("clk: iproc: add initial common clock support")
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/bcm/clk-iproc-pll.c