diff options
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_hdmi_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_util.c b/drivers/video/fbdev/msm/mdss_hdmi_util.c index 8b8b4120d3fb..8e854c54bae8 100644 --- a/drivers/video/fbdev/msm/mdss_hdmi_util.c +++ b/drivers/video/fbdev/msm/mdss_hdmi_util.c @@ -959,13 +959,17 @@ error: void hdmi_ddc_config(struct hdmi_tx_ddc_ctrl *ddc_ctrl) { + u32 ddc_speed; + if (!ddc_ctrl || !ddc_ctrl->io) { pr_err("invalid input\n"); return; } /* Configure Pre-Scale multiplier & Threshold */ - DSS_REG_W_ND(ddc_ctrl->io, HDMI_DDC_SPEED, (10 << 16) | (2 << 0)); + ddc_speed = DSS_REG_R_ND(ddc_ctrl->io, HDMI_DDC_SPEED); + ddc_speed |= (12 << 16) | (2 << 0); + DSS_REG_W_ND(ddc_ctrl->io, HDMI_DDC_SPEED, ddc_speed); /* * Setting 31:24 bits : Time units to wait before timeout |
