]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71ca5c68d452473401541cc5611d91987ff93407
tree55ef3d9f2d96e3546304fd07619e6c1dffcb6e08
parente996cc75280907fa32100195c7aa1ac462c8ff30
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