Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Icenowy Zheng and committed by
Stephen Boyd
98fb2b95 95881a54

+1 -1
+1 -1
drivers/clk/sunxi-ng/ccu-sun8i-a33.c
··· 131 131 8, 4, /* N */ 132 132 4, 2, /* K */ 133 133 0, 4, /* M */ 134 - BIT(31), /* gate */ 134 + BIT(31) | BIT(23) | BIT(22), /* gate */ 135 135 BIT(28), /* lock */ 136 136 CLK_SET_RATE_UNGATE); 137 137