drm/tegra: dsi - Handle non-continuous clock flag
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 8 Jul 2014 12:32:13 +0000 (21:32 +0900)
committerThierry Reding <treding@nvidia.com>
Mon, 4 Aug 2014 08:07:33 +0000 (10:07 +0200)
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>
drivers/gpu/drm/tegra/dsi.c

index bd56f2affa7895b2d1e0fbd556e3e811f8e78f14..eadfeaf9e1eb8fb198f45dfb7ec52dd29bb3b979 100644 (file)
@@ -474,7 +474,8 @@ static int tegra_output_dsi_enable(struct tegra_output *output)
        tegra_dsi_writel(dsi, value, DSI_HOST_CONTROL);
 
        value = tegra_dsi_readl(dsi, DSI_CONTROL);
-       value |= DSI_CONTROL_HS_CLK_CTRL;
+       if (dsi->flags & MIPI_DSI_CLOCK_NON_CONTINUOUS)
+               value |= DSI_CONTROL_HS_CLK_CTRL;
        value &= ~DSI_CONTROL_TX_TRIG(3);
        value &= ~DSI_CONTROL_DCS_ENABLE;
        value |= DSI_CONTROL_VIDEO_ENABLE;