Skip to content
Commit e6a98150 authored by Simran Rai's avatar Simran Rai Committed by Greg Kroah-Hartman
Browse files

clk: iproc: Fix PLL output frequency calculation

commit 63243a4d

 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: default avatarSimran Rai <ssimran@broadcom.com>
Signed-off-by: default avatarRay Jui <rjui@broadcom.com>
Reviewed-by: default avatarScott Branden <sbranden@broadcom.com>
Fixes: 5fe225c1

 ("clk: iproc: add initial common clock support")
Signed-off-by: default avatarMichael Turquette <mturquette@baylibre.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 40a76e54
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment