Home
last modified time | relevance | path

Searched hist:c45693a6480cee906557a9fba533a9f3c224f91e (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/clk/mmp/
H A Dclk-frac.cdiff c45693a6480cee906557a9fba533a9f3c224f91e Thu Jan 23 03:47:41 CET 2014 Chao Xie <chao.xie@marvell.com> clk: mmp: fix the wrong calculation formula

The formula is numerator/denominator = Fin / (Fout * factor)
So
Fout = Fin * denominator / (numerator * factor).
Current clk_factor_round_rate and clk_factor_recalc_rate use
wrong formula. This patch will fix them.

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>