Skip to content
Commit 9ca41bcc authored by Sascha Hauer's avatar Sascha Hauer
Browse files

ARM i.MX pllv2: make round_rate accurate



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: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 6cc90d6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment