clk: sunxi-ng: mult: Support PLL lock detection
authorChen-Yu Tsai <wens@csie.org>
Wed, 5 Apr 2017 06:37:42 +0000 (14:37 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 5 Apr 2017 07:01:41 +0000 (09:01 +0200)
commitcf719012b23278c65d0bca4975a7ea46e5bb75be
tree55ef3d9f2d96e3546304fd07619e6c1dffcb6e08
parentcdb8b80b60935515b86cfe534f69934b13937052
clk: sunxi-ng: mult: Support PLL lock detection

Some PLL clocks are N (multiplier) type clocks, or can be simplified
as such. An example of the former is the DDR1 PLL clock on the A33.
An example of the latter is the CPU PLL clock on the A80, in which
the P divider is only used for low frequencies that are of little
use. Both clocks support PLL lock detection.

The mult clock macro implies support for this, but that is not true.
The field is simply discarded. This patch adds proper support for it.

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