summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPadmanabhan Komanduru <pkomandu@codeaurora.org>2015-03-31 17:26:58 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:47:10 -0700
commit28276a4f1d00851b777e48202f9fe356d15be2b0 (patch)
tree8159bcc883b7dd26ff46f1b33e9178721088fe53 /drivers
parent2b17b940389c72b24b2956d8b27e24c7a597856a (diff)
msm: mdss: set DSI HS timer value to recommended value
During MDSS DSI controller initialization, program the DSI HS timer value with the recommended value from the DSI h/w team. This is needed for proper trigger of DSI HS timeout errors. Change-Id: Ia83a5abd901ec7d632cb9ad8588249a5a64d4d1f Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi_host.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi_host.c b/drivers/video/fbdev/msm/mdss_dsi_host.c
index 84e5f023073a..fad017773863 100644
--- a/drivers/video/fbdev/msm/mdss_dsi_host.c
+++ b/drivers/video/fbdev/msm/mdss_dsi_host.c
@@ -404,6 +404,11 @@ void mdss_dsi_host_init(struct mdss_panel_data *pdata)
data |= BIT(0);
MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x00cc,
data); /* DSI_EOT_PACKET_CTRL */
+ /*
+ * DSI_HS_TIMER_CTRL -> timer resolution = 8 esc clk
+ * HS TX timeout - 16136 (0x3f08) esc clk
+ */
+ MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x00bc, 0x3fd08);
/* allow only ack-err-status to generate interrupt */