disp: msm: dsi: commit DSI PHY timings after update
DSI PHY timings must be committed every time the values are updated after a dynamic mode switch. Change-Id: Id605c76dfe75ec41ceb89000f24baccda189e82f Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
@@ -1071,6 +1071,8 @@ int dsi_phy_set_clk_freq(struct msm_dsi_phy *phy,
|
||||
* @phy: DSI PHY handle
|
||||
* @timing: array holding timing params.
|
||||
* @size: size of the array.
|
||||
* @commit: boolean to indicate if programming PHY HW registers is
|
||||
* required
|
||||
*
|
||||
* When PHY timing calculator is not implemented, this array will be used to
|
||||
* pass PHY timing information.
|
||||
@@ -1078,7 +1080,7 @@ int dsi_phy_set_clk_freq(struct msm_dsi_phy *phy,
|
||||
* Return: error code.
|
||||
*/
|
||||
int dsi_phy_set_timing_params(struct msm_dsi_phy *phy,
|
||||
u32 *timing, u32 size)
|
||||
u32 *timing, u32 size, bool commit)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
@@ -1091,9 +1093,13 @@ int dsi_phy_set_timing_params(struct msm_dsi_phy *phy,
|
||||
|
||||
if (phy->hw.ops.phy_timing_val)
|
||||
rc = phy->hw.ops.phy_timing_val(&phy->cfg.timing, timing, size);
|
||||
|
||||
if (!rc)
|
||||
phy->cfg.is_phy_timing_present = true;
|
||||
|
||||
if (phy->hw.ops.commit_phy_timing && commit)
|
||||
phy->hw.ops.commit_phy_timing(&phy->hw, &phy->cfg.timing);
|
||||
|
||||
mutex_unlock(&phy->phy_lock);
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user