summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorSandeep Panda <spanda@codeaurora.org>2015-08-18 11:08:15 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:45:15 -0700
commitbed2a7d69d4e02aec9c1a1eba37d5563185a9bd7 (patch)
tree1baab280984b238b50ab6dff2a6f33806e91ebc2 /drivers/video
parent6f6cd7047d6f8ebf033c4113f67acd530e05cf85 (diff)
msm: mdss: reset DSI LANE control register during initialization
Sometimes during suspend due to some shared regulator, if DSI PHY was not turned off properly, then DSI LANE control register might store some stale values during resume and this might cause side effects on panel during initialization sequence. So reset the DSI lane control register during DSI host initialization. Change-Id: Ib87281cc1346d88a83e7e26f7dc4951a0798276b Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi_host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi_host.c b/drivers/video/fbdev/msm/mdss_dsi_host.c
index 3cb811b8a9dc..9423cfbd38ce 100644
--- a/drivers/video/fbdev/msm/mdss_dsi_host.c
+++ b/drivers/video/fbdev/msm/mdss_dsi_host.c
@@ -403,6 +403,10 @@ void mdss_dsi_host_init(struct mdss_panel_data *pdata)
MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x11c,
0x23f); /* DSI_CLK_CTRL */
+ /* Reset DSI_LANE_CTRL */
+ if (!ctrl_pdata->mmss_clamp)
+ MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x00ac, 0x0);
+
dsi_ctrl |= BIT(0); /* enable dsi */
MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x0004, dsi_ctrl);