disp: msm: add skip panel power off dt property

This property skips the panel power off for panels
with in-cell design.

Change-Id: I61ff7b8696940b74a58c79eef5b9cd43fd551c01
Signed-off-by: Sai Srujana Oruganti <quic_osaisruj@quicinc.com>
This commit is contained in:
Sai Srujana Oruganti 2022-04-21 17:46:06 +05:30 • committed by Gerrit - the friendly Code Review server
commit fc3be600f7
2 changed files with 5 additions and 1 deletions

View file

@ -379,7 +379,7 @@ static int dsi_panel_power_off(struct dsi_panel *panel)
{
int rc = 0;
if (panel->is_twm_en) {
if (panel->is_twm_en || panel->skip_panel_off) {
DSI_DEBUG("TWM Enabled, skip panel power off\n");
return rc;
}
@ -2085,6 +2085,9 @@ static int dsi_panel_parse_misc_features(struct dsi_panel *panel)
panel->reset_gpio_always_on = utils->read_bool(utils->data,
"qcom,platform-reset-gpio-always-on");
panel->skip_panel_off = utils->read_bool(utils->data,
"qcom,skip-panel-power-off");
panel->spr_info.enable = false;
panel->spr_info.pack_type = MSM_DISPLAY_SPR_TYPE_MAX;

View file

@ -245,6 +245,7 @@ struct dsi_panel {
atomic_t esd_recovery_pending;
bool is_twm_en;
bool skip_panel_off;
bool panel_initialized;
bool te_using_watchdog_timer;
struct dsi_qsync_capabilities qsync_caps;