Skip to content

Commit d3174bc

Browse files
chunhui daibebarino
authored andcommitted
clk: mediatek: using CLK_MUX_ROUND_CLOSEST for the clock of dpi1_sel
The MUX clock of dpi1_sel should select the closet clock for itself. We could add this flag to enable this function of MUX in CCF. Signed-off-by: chunhui dai <chunhui.dai@mediatek.com> Signed-off-by: wangyan wang <wangyan.wang@mediatek.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent b026a7e commit d3174bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/mediatek/clk-mt2701.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ static const struct mtk_composite top_muxes[] = {
535535
0x0080, 8, 2, 15),
536536
MUX_GATE(CLK_TOP_DPI0_SEL, "dpi0_sel", dpi0_parents,
537537
0x0080, 16, 3, 23),
538-
MUX_GATE(CLK_TOP_DPI1_SEL, "dpi1_sel", dpi1_parents,
539-
0x0080, 24, 2, 31),
538+
MUX_GATE_FLAGS_2(CLK_TOP_DPI1_SEL, "dpi1_sel", dpi1_parents,
539+
0x0080, 24, 2, 31, 0, CLK_MUX_ROUND_CLOSEST),
540540

541541
MUX_GATE(CLK_TOP_TVE_SEL, "tve_sel", tve_parents,
542542
0x0090, 0, 3, 7),

0 commit comments

Comments
 (0)