disp: msm: dsi: make PPS delay configurable

This change makes the post PPS command delay a panel property.
By default the value is set to zero if not specified.

Change-Id: I50c86ba0f0cb28ff617435e92e9675e5c35404ca
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Satya Rama Aditya Pinapala
2019-07-03 10:53:31 -07:00
committed by Gerrit - the friendly Code Review server
parent 6c483e3b23
commit e52bd3228c
2 changed files with 10 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ int dsi_dsc_create_pps_buf_cmd(struct msm_display_dsc_info *dsc, char *buf,
*bp++ = 1;
*bp++ = 0;
*bp++ = 0;
*bp++ = 10;
*bp++ = dsc->pps_delay_ms;
*bp++ = 0;
*bp++ = 128;
@@ -2625,6 +2625,13 @@ static int dsi_panel_parse_dsc_params(struct dsi_display_mode *mode,
}
priv_info->dsc.bpc = data;
rc = utils->read_u32(utils->data, "qcom,mdss-pps-delay-ms", &data);
if (rc) {
DSI_DEBUG("pps-delay-ms not specified, defaulting to 0\n");
priv_info->dsc.pps_delay_ms = 0;
}
priv_info->dsc.pps_delay_ms = data;
rc = utils->read_u32(utils->data, "qcom,mdss-dsc-bit-per-pixel",
&data);
if (rc) {