Skip to content
Commit 59f0ec23 authored by Maxime Ripard's avatar Maxime Ripard Committed by Stephen Boyd
Browse files

clk: sunxi: pll2: Fix clock running too fast



Contrary to what the datasheet says, the pre divider doesn't seem to be
incremented by one in the PLL2, but just uses the value from the register,
with 0 being a bypass.

This fixes the audio playing too fast.

Since we now have the same pre-divider flags, and the only difference with
the A10 is the post-divider offset, also remove the structure to just pass
the offset as an argument.

Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Fixes: eb662f85

 ("clk: sunxi: pll2: Add A13 support")
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent e80cf2e5
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