clk: sunxi-ng: sun8i: a83t: Use sigma-delta modulation for audio PLL
authorChen-Yu Tsai <wens@csie.org>
Fri, 8 Dec 2017 08:35:12 +0000 (16:35 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 8 Dec 2017 09:08:32 +0000 (10:08 +0100)
commite952ca3c6b2ffdfbf9618e4bd3e9aad1ff3f5eb4
tree63c022815ebc73f810ae2b1a0edbab8ef1fd711d
parent10e6eb4f2c5b35ae71c9bc0db83d74238719b453
clk: sunxi-ng: sun8i: a83t: Use sigma-delta modulation for audio PLL

The audio blocks require specific clock rates. Until now we were using
the closest clock rate possible with integer N-M factors. This resulted
in audio playback being slightly slower than it should be.

The vendor kernel gets around this (for newer SoCs) by using sigma-delta
modulation to generate a fractional-N factor. This patch copies the
parameters for the A83T.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/ccu-sun8i-a83t.c