]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: pll2: Fix clock running too fast
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 1 Dec 2015 11:14:52 +0000 (12:14 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 3 Dec 2015 07:27:47 +0000 (23:27 -0800)
commit03d4e16b5743897926c3531467f9a6dca6d9c777
treea1c3ef94f0829eccd4b1e03429a35cef3466fb2d
parent638995604daaa2340cc7d4e2bebbc839e6e5d9a6
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: Maxime Ripard <maxime.ripard@free-electrons.com>
Fixes: 84be82867213 ("clk: sunxi: pll2: Add A13 support")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/sunxi/clk-a10-pll2.c