disp: msm:: reset the param value to the default value
During the panel is enable, we reset the value of the panel register with default setting. Change-Id: I88cbfc24b825ed24c32f1922c12a9d7da4b014d0 Signed-off-by: daiss1 <daiss1@lenovo.com> Reviewed-on: https://gerrit.mot.com/1465699 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1509824 Reviewed-by: Hua Tan <tanhua1@motorola.com>
This commit is contained in:
1 parent
ae9b5e976e
commit
d99fbf3569
3 files changed
+14
No files matched your search
@@ -8061,6 +8061,7 @@ int dsi_display_enable(struct dsi_display *display)
|
||||
display->name, rc);
|
||||
goto error;
|
||||
}
|
||||
dsi_panel_reset_param(display->panel);
|
||||
}
|
||||
|
||||
if (mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) {
|
||||
|
||||
@@ -995,6 +995,17 @@ int dsi_panel_set_param(struct dsi_panel *panel,
|
||||
return rc;
|
||||
}
|
||||
|
||||
void dsi_panel_reset_param(struct dsi_panel *panel)
|
||||
{
|
||||
struct panel_param *param;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < PARAM_ID_NUM; i++) {
|
||||
param = &dsi_panel_param[0][i];
|
||||
param->value = param->default_value;
|
||||
}
|
||||
}
|
||||
|
||||
static int dsi_panel_bl_register(struct dsi_panel *panel)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
@@ -405,4 +405,6 @@ void dsi_panel_calc_dsi_transfer_time(struct dsi_host_common_cfg *config,
|
||||
int dsi_panel_set_param(struct dsi_panel *panel,
|
||||
struct msm_param_info *param_info);
|
||||
|
||||
void dsi_panel_reset_param(struct dsi_panel *panel);
|
||||
|
||||
#endif /* _DSI_PANEL_H_ */
|
||||
Reference in new issue
Block a user