diff options
author | Abel Vesa <abel.vesa@nxp.com> | 2019-01-18 12:54:13 +0000 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-01-24 11:17:28 -0800 |
commit | a64a9c088b75cba5840320d57e0bbfb36739c3b5 (patch) | |
tree | 6f249b3a8683a3a74a72b32a9bceb18f17109fa1 /drivers/clk/ti/divider.c | |
parent | ede77858473ae4cab6f8f147efcaa76989761535 (diff) | |
download | linux-stable-a64a9c088b75cba5840320d57e0bbfb36739c3b5.tar.gz linux-stable-a64a9c088b75cba5840320d57e0bbfb36739c3b5.tar.bz2 linux-stable-a64a9c088b75cba5840320d57e0bbfb36739c3b5.zip |
clk: imx: Fix fractional clock set rate computation
Before multiplying by PLL_FRAC_DENOM, the temp64 needs to be
temp64 = rate * 2 - divfi * parent_rate * 8, instead of:
temp64 = (rate * 2 - divfi) * parent_rate
Fixes: 6209624b9a5c1e ("clk: imx: Add fractional PLL output clock")
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ti/divider.c')
0 files changed, 0 insertions, 0 deletions