msm: mdss: update the dynamic refresh registers only for PLL0

Currently, when changing the refresh rate dynamically, the same
DSI PLL0 registers get updated as we dont use the PLL1. This
change avoids programmaing of second controller.

Change-Id: I599787f25fe3f197c426e38c0a02fa367ec2732e
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
This commit is contained in:
Jeevan Shriram 2014-08-27 19:05:06 -07:00 committed by David Keitel
parent e2e79b5fe8
commit e6ff417951

View file

@ -948,6 +948,11 @@ static int __mdss_dsi_dfps_update_clks(struct mdss_panel_data *pdata,
if (pdata->panel_info.dfps_update if (pdata->panel_info.dfps_update
== DFPS_IMMEDIATE_CLK_UPDATE_MODE) { == DFPS_IMMEDIATE_CLK_UPDATE_MODE) {
if (mdss_dsi_is_ctrl_clk_slave(ctrl_pdata)) {
pr_debug("%s DFPS already updated.\n", __func__);
return rc;
}
__mdss_dsi_dyn_refresh_config(ctrl_pdata); __mdss_dsi_dyn_refresh_config(ctrl_pdata);
__mdss_dsi_calc_dfps_delay(pdata); __mdss_dsi_calc_dfps_delay(pdata);
ctrl_pdata->pclk_rate = ctrl_pdata->pclk_rate =