Skip to content

Commit

Permalink
drm/mediatek: add non-continuous clock mode and EOT packet control
Browse files Browse the repository at this point in the history
This patch will update dsi clock control method.
1. dsi non-continue clock mode will enhance antistatic effect for panel
2. EOT packet control will judge whether dsi send end of packet or not
by customize

Signed-off-by: shaoming chen <shaoming.chen@mediatek.com>
Signed-off-by: YT Shen <yt.shen@mediatek.com>
Acked-by: CK Hu <ck.hu@mediatek.com>
  • Loading branch information
yt.shen@mediatek.com authored and CK Hu committed Apr 7, 2017
1 parent 2189881 commit 2d52bfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/mediatek/mtk_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ static void mtk_dsi_rxtx_control(struct mtk_dsi *dsi)
break;
}

tmp_reg |= (dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) << 6;
tmp_reg |= (dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET) >> 3;

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

Expand Down

0 comments on commit 2d52bfb

Please sign in to comment.