diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2014-07-08 08:32:13 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-08-04 04:07:33 -0400 |
commit | 0c6b1e4ba74f58ee1507d456e52c630b4b8ff174 (patch) | |
tree | f42d3fd223684c073d705f7b957f1f716a09500b | |
parent | 2263c460bed14f36c9a87d97242c35cf1346f61e (diff) |
drm/tegra: dsi - Handle non-continuous clock flag
Handle the MIPI_DSI_CLOCK_NONCONTINUOUS flag and only set TX-only
clock behavior when this flag is present to allow panels requiring
continuous clock mode to operate with this driver.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/dsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index bd56f2affa78..eadfeaf9e1eb 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c | |||
@@ -474,7 +474,8 @@ static int tegra_output_dsi_enable(struct tegra_output *output) | |||
474 | tegra_dsi_writel(dsi, value, DSI_HOST_CONTROL); | 474 | tegra_dsi_writel(dsi, value, DSI_HOST_CONTROL); |
475 | 475 | ||
476 | value = tegra_dsi_readl(dsi, DSI_CONTROL); | 476 | value = tegra_dsi_readl(dsi, DSI_CONTROL); |
477 | value |= DSI_CONTROL_HS_CLK_CTRL; | 477 | if (dsi->flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) |
478 | value |= DSI_CONTROL_HS_CLK_CTRL; | ||
478 | value &= ~DSI_CONTROL_TX_TRIG(3); | 479 | value &= ~DSI_CONTROL_TX_TRIG(3); |
479 | value &= ~DSI_CONTROL_DCS_ENABLE; | 480 | value &= ~DSI_CONTROL_DCS_ENABLE; |
480 | value |= DSI_CONTROL_VIDEO_ENABLE; | 481 | value |= DSI_CONTROL_VIDEO_ENABLE; |