Merge "disp: msm: dsi: enable dfps trigger at mdp intf flush" into display-kernel.lnx.5.4

This commit is contained in:
Linux Build Service Account
2020-08-20 21:52:52 -07:00
committed by Gerrit - the friendly Code Review server
commit 0af93447c5
8 muutettua tiedostoa jossa 117 lisäystä ja 2 poistoa

Näytä tiedosto

@@ -1221,6 +1221,32 @@ void dsi_phy_config_dynamic_refresh(struct msm_dsi_phy *phy,
mutex_unlock(&phy->phy_lock);
}
/**
* dsi_phy_dynamic_refresh_trigger_sel() - trigger dynamic refresh and
* update the video timings at next frame flush call.
* @phy: DSI PHY handle
* @is_master: Boolean to indicate if for master or slave.
*/
void dsi_phy_dynamic_refresh_trigger_sel(struct msm_dsi_phy *phy,
bool is_master)
{
if (!phy)
return;
mutex_lock(&phy->phy_lock);
/*
* program DYNAMIC_REFRESH_CTRL.TRIGGER_SEL for master.
*/
if (phy->hw.ops.dyn_refresh_ops.dyn_refresh_trigger_sel)
phy->hw.ops.dyn_refresh_ops.dyn_refresh_trigger_sel
(&phy->hw, is_master);
phy->dfps_trigger_mdpintf_flush = true;
SDE_EVT32(is_master, phy->index);
mutex_unlock(&phy->phy_lock);
}
/**
* dsi_phy_dynamic_refresh_trigger() - trigger dynamic refresh
* @phy: DSI PHY handle