clk: sunxi: Add a driver for the PLL2
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 18 Jul 2014 18:48:35 +0000 (15:48 -0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 21 Oct 2015 19:51:27 +0000 (21:51 +0200)
commit460d0d444822e9032a2573fc051b45c68b89a97a
tree1428651bfc2aec68811555d9155b0aa16eb66c2a
parentf2e0a53271a439a2ab142645867f0cde45b2b3cd
clk: sunxi: Add a driver for the PLL2

The PLL2 on the A10 and later SoCs is the clock used for all the audio
related operations.

This clock has a somewhat complex output tree, with three outputs (2X, 4X
and 8X) with a fixed divider from the base clock, and an output (1X) with a
post divider.

However, we can simplify things since the 1X divider can be fixed, and we
end up by having a base clock not exposed to any device (or at least
directly, since the 4X output doesn't have any divider), and 4 fixed
divider clocks that will be exposed.

This clock seems to have been introduced, at least in this form, in the
revision B of the A10, but we don't have any information on the clock used
on the revision A.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi/Makefile
drivers/clk/sunxi/clk-a10-pll2.c [new file with mode: 0644]
include/dt-bindings/clock/sun4i-a10-pll2.h [new file with mode: 0644]