disp: msm: dsi: Add support to keep display reset pin high

This change adds support to keep display reset pin high during
suspend state.

Change-Id: I8fab43d8f7b30fce72cc95277d016b72b914aa99
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
This commit is contained in:
Ritesh Kumar
2020-06-08 13:02:56 +05:30
committed by Steve Cohen
父節點 d8ffbf3d39
當前提交 269ead80c7
共有 2 個文件被更改,包括 6 次插入2 次删除

查看文件

@@ -356,7 +356,8 @@ static int dsi_panel_power_off(struct dsi_panel *panel)
if (gpio_is_valid(panel->reset_config.disp_en_gpio))
gpio_set_value(panel->reset_config.disp_en_gpio, 0);
if (gpio_is_valid(panel->reset_config.reset_gpio))
if (gpio_is_valid(panel->reset_config.reset_gpio) &&
!panel->reset_gpio_always_on)
gpio_set_value(panel->reset_config.reset_gpio, 0);
if (gpio_is_valid(panel->reset_config.lcd_mode_sel_gpio))
@@ -1949,6 +1950,9 @@ static int dsi_panel_parse_misc_features(struct dsi_panel *panel)
panel->lp11_init = utils->read_bool(utils->data,
"qcom,mdss-dsi-lp11-init");
panel->reset_gpio_always_on = utils->read_bool(utils->data,
"qcom,platform-reset-gpio-always-on");
panel->spr_info.enable = false;
panel->spr_info.pack_type = MSM_DISPLAY_SPR_TYPE_MAX;
@@ -1970,7 +1974,6 @@ static int dsi_panel_parse_misc_features(struct dsi_panel *panel)
panel->spr_info.enable ?
msm_spr_pack_type_str[panel->spr_info.pack_type] : "none");
return 0;
}