]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi-ng: enable so-said LDOs for A33 SoC's pll-mipi clock
authorIcenowy Zheng <icenowy@aosc.xyz>
Thu, 17 Nov 2016 16:49:54 +0000 (00:49 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 23 Nov 2016 20:32:39 +0000 (12:32 -0800)
commita65eb6b691a259d6c632cecc609d891b1a4ace7d
tree459c2e4bff8c7a72b8620d4a85c34ca83d8d7ff4
parente177618d3de036cadaf4aa1f8c325c5d22345ad8
clk: sunxi-ng: enable so-said LDOs for A33 SoC's pll-mipi clock

In the user manual of A33 SoC, the bit 22 and 23 of pll-mipi control
register is called "LDO{1,2}_EN", and according to the BSP source code
from Allwinner [1], the LDOs are enabled during the clock's enabling
process.

The clock failed to generate output if the two LDOs are not enabled.

Add the two bits to the clock's gate bits, so that the LDOs are enabled
when the PLL is enabled.

[1] https://github.com/allwinner-zh/linux-3.4-sunxi/blob/master/drivers/clk/sunxi/clk-sun8iw5.c#L429

Fixes: 8d846b575434 ("clk: sunxi-ng: Add A33 CCU support")
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/ccu-sun8i-a33.c