Skip to content

Commit c87d1c4

Browse files
mediatek-jitaoChun-Kuang Hu
authored andcommitted
drm/mediatek: dsi: Use symbolized register definition
For HSTX_CKLP_EN and DIS_EOT, use symbolized register definition instead of magic number. Signed-off-by: Jitao Shi <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent be7507b commit c87d1c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/mediatek/mtk_dsi.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,11 @@ static void mtk_dsi_rxtx_control(struct mtk_dsi *dsi)
401401
break;
402402
}
403403

404-
tmp_reg |= (dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) << 6;
405-
tmp_reg |= (dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET) >> 3;
404+
if (dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS)
405+
tmp_reg |= HSTX_CKLP_EN;
406+
407+
if (!(dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET))
408+
tmp_reg |= DIS_EOT;
406409

407410
writel(tmp_reg, dsi->regs + DSI_TXRX_CTRL);
408411
}

0 commit comments

Comments
 (0)