ARM i.MX pllv2: make round_rate accurate
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 4 Jun 2012 12:51:32 +0000 (14:51 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 4 Jun 2012 13:23:47 +0000 (15:23 +0200)
in round_rate we made the assumption that we can set arbitrary
frequencies and thus returned the input rate. This is not correct,
for certain frequencies after setting a frequency with set_rate,
recalc_rate will return different values. To fix this, introduce
set_rate/recalc_rate functions which work on variables instead
of registers directly. This way we can call these in round_rate
to get the exact rate which we would get if we call set_rate
with this value.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

No differences found