Merge "disp: msm: dsi: parse PLL dfps data only if dynamic clock is enabled"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
0d0a538bf6
@@ -4091,6 +4091,14 @@ static int dsi_display_res_init(struct dsi_display *display)
|
|||||||
display->panel->host_config.force_hs_clk_lane;
|
display->panel->host_config.force_hs_clk_lane;
|
||||||
phy->cfg.phy_type =
|
phy->cfg.phy_type =
|
||||||
display->panel->host_config.phy_type;
|
display->panel->host_config.phy_type;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Parse the dynamic clock trim codes for PLL, for video mode panels that have
|
||||||
|
* dynamic clock property set.
|
||||||
|
*/
|
||||||
|
if ((display->panel->dyn_clk_caps.dyn_clk_support) &&
|
||||||
|
(display->panel->panel_mode == DSI_OP_VIDEO_MODE))
|
||||||
|
dsi_phy_pll_parse_dfps_data(phy);
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = dsi_display_parse_lane_map(display);
|
rc = dsi_display_parse_lane_map(display);
|
||||||
|
@@ -1396,6 +1396,15 @@ void dsi_phy_set_continuous_clk(struct msm_dsi_phy *phy, bool enable)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* dsi_phy_pll_parse_dfps_data() - parse dfps data for PLL
|
||||||
|
* @phy: DSI PHY handle
|
||||||
|
*/
|
||||||
|
void dsi_phy_pll_parse_dfps_data(struct msm_dsi_phy *phy)
|
||||||
|
{
|
||||||
|
dsi_pll_parse_dfps_data(phy->pdev, phy->pll);
|
||||||
|
}
|
||||||
|
|
||||||
void dsi_phy_drv_register(void)
|
void dsi_phy_drv_register(void)
|
||||||
{
|
{
|
||||||
platform_driver_register(&dsi_phy_platform_driver);
|
platform_driver_register(&dsi_phy_platform_driver);
|
||||||
|
@@ -402,4 +402,10 @@ int dsi_phy_pll_toggle(struct msm_dsi_phy *dsi_phy, bool prepare);
|
|||||||
* Return: error code.
|
* Return: error code.
|
||||||
*/
|
*/
|
||||||
int dsi_phy_dynclk_configure(struct msm_dsi_phy *phy);
|
int dsi_phy_dynclk_configure(struct msm_dsi_phy *phy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* dsi_phy_pll_parse_dfps_data() - parse dfps data for PLL
|
||||||
|
* @phy: DSI PHY handle
|
||||||
|
*/
|
||||||
|
void dsi_phy_pll_parse_dfps_data(struct msm_dsi_phy *phy);
|
||||||
#endif /* _DSI_PHY_H_ */
|
#endif /* _DSI_PHY_H_ */
|
||||||
|
@@ -339,10 +339,13 @@ int dsi_pll_init(struct platform_device *pdev, struct dsi_pll_resource **pll)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
void dsi_pll_parse_dfps_data(struct platform_device *pdev, struct dsi_pll_resource *pll_res)
|
||||||
|
{
|
||||||
if (!(pll_res->index)) {
|
if (!(pll_res->index)) {
|
||||||
if (dsi_pll_parse_dfps_from_dt(pdev, pll_res))
|
if (dsi_pll_parse_dfps_from_dt(pdev, pll_res))
|
||||||
dsi_pll_parse_dfps(pdev, pll_res);
|
dsi_pll_parse_dfps(pdev, pll_res);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
@@ -212,4 +212,7 @@ int dsi_pll_clock_register_5nm(struct platform_device *pdev,
|
|||||||
|
|
||||||
int dsi_pll_init(struct platform_device *pdev,
|
int dsi_pll_init(struct platform_device *pdev,
|
||||||
struct dsi_pll_resource **pll_res);
|
struct dsi_pll_resource **pll_res);
|
||||||
|
|
||||||
|
void dsi_pll_parse_dfps_data(struct platform_device *pdev, struct dsi_pll_resource *pll_res);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user