Skip to content

Commit 1d34b97

Browse files
Kwiboommind
authored andcommitted
clk: rockchip: Set parent rate for DCLK_VOP clock on RK3228
Similar to DCLK_LCDC on RK3328, the DCLK_VOP on RK3228 is typically parented by the hdmiphy clk and it is expected that the DCLK_VOP and hdmiphy clk rate are kept in sync. Use CLK_SET_RATE_PARENT and CLK_SET_RATE_NO_REPARENT flags, same as used on RK3328, to make full use of all possible supported display modes. Fixes: 0a9d4ac ("clk: rockchip: set the clock ids for RK3228 VOP") Fixes: 307a2e9 ("clk: rockchip: add clock controller for rk3228") Signed-off-by: Jonas Karlman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 8400291 commit 1d34b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/rockchip/clk-rk3228.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static struct rockchip_clk_branch rk3228_clk_branches[] __initdata = {
409409
RK2928_CLKSEL_CON(29), 0, 3, DFLAGS),
410410
DIV(0, "sclk_vop_pre", "sclk_vop_src", 0,
411411
RK2928_CLKSEL_CON(27), 8, 8, DFLAGS),
412-
MUX(DCLK_VOP, "dclk_vop", mux_dclk_vop_p, 0,
412+
MUX(DCLK_VOP, "dclk_vop", mux_dclk_vop_p, CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT,
413413
RK2928_CLKSEL_CON(27), 1, 1, MFLAGS),
414414

415415
FACTOR(0, "xin12m", "xin24m", 0, 1, 2),

0 commit comments

Comments
 (0)