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)
commit98fb2b95d293c4e29c35f188f7745a5e5db3db2d
tree459c2e4bff8c7a72b8620d4a85c34ca83d8d7ff4
parent95881a54b8b175be56adbcd86a473d8e8d5be2aa
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: d05c748bd730 ("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