mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
display/backlight: support hbm dcs only with 51 cmd
some product use 51 cmd to support HBM, shouldn't reset brightness when hbm on Change-Id: Ia2db13dfc3f131f9137bbb6f9ee6cd80406b7a8f Signed-off-by: hujing3 <[email protected]> Reviewed-on: https://gerrit.mot.com/2376249 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang <[email protected]> Reviewed-by: Hua Tan <[email protected]> Submit-Approved: Jira Key
This commit is contained in:
parent
031a6e371f
commit
34271928bb
2 changed files with 9 additions and 1 deletions
|
|
@ -879,7 +879,10 @@ static bool dsi_panel_set_hbm_backlight(struct dsi_panel *panel, u32 *bl_lvl)
|
|||
panel->bl_config.bl_max_level : panel->bl_lvl_during_hbm;
|
||||
DSI_INFO("HBM set bl_level=%d bl_max_level = %d bl_lvl_during_hbm = %d\n",
|
||||
bl_level, panel->bl_config.bl_max_level, panel->bl_lvl_during_hbm);
|
||||
return false;
|
||||
if(panel->is_hbm_using_51_cmd && dsi_panel_param_is_hbm_on(panel))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
} else {
|
||||
panel->bl_lvl_during_hbm = bl_level;
|
||||
if (dsi_panel_param_is_hbm_on(panel)) {
|
||||
|
|
@ -4398,6 +4401,10 @@ static int dsi_panel_parse_param_prop(struct dsi_panel *panel,
|
|||
|
||||
panel->bl_lvl_during_hbm = panel->bl_config.bl_max_level;
|
||||
|
||||
panel->is_hbm_using_51_cmd = of_property_read_bool(of_node,
|
||||
"qcom,mdss-dsi-panel-hbm-is-51cmd");
|
||||
if (panel->is_hbm_using_51_cmd)
|
||||
DSI_INFO("HBM command is using 0x51 command\n");
|
||||
}
|
||||
|
||||
rc = -EINVAL;
|
||||
|
|
|
|||
|
|
@ -405,6 +405,7 @@ struct dsi_panel {
|
|||
int panel_recovery_retry;
|
||||
bool is_panel_dead;
|
||||
|
||||
bool is_hbm_using_51_cmd;
|
||||
int hbm_en_gpio;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue