Skip to content

Commit b271fc4

Browse files
Frank Oltmannswens
authored andcommitted
clk: sunxi-ng: a64: allow pll-mipi to set parent's rate
The nkm clock now supports setting the parent's rate. Utilize this option to find the optimal rate for pll-mipi. Acked-by: Maxime Ripard <mripard@kernel.org> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Frank Oltmanns <frank@oltmanns.dev> Link: https://lore.kernel.org/r/20230807-pll-mipi_set_rate_parent-v6-3-f173239a4b59@oltmanns.dev Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent 3492e4f commit b271fc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/clk/sunxi-ng/ccu-sun50i-a64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ static struct ccu_nkm pll_mipi_clk = {
179179
.common = {
180180
.reg = 0x040,
181181
.hw.init = CLK_HW_INIT("pll-mipi", "pll-video0",
182-
&ccu_nkm_ops, CLK_SET_RATE_UNGATE),
182+
&ccu_nkm_ops,
183+
CLK_SET_RATE_UNGATE | CLK_SET_RATE_PARENT),
183184
},
184185
};
185186

0 commit comments

Comments
 (0)