disp: msm: dsi: Update dsi byte interface clock calculation

Update dsi byte interface clock as per hardware recommendation.
For Phy ver 2.0 and below: byte intf clk equals to byte clk.
For Phy ver 3.0 and above: byte intf clk equals to byte clk / 2.

Change-Id: Ic3af2e4348403aeacb2e1c73c4dc133db63a51a4
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
Signed-off-by: Lipsa Rout <lrout@codeaurora.org>
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Lipsa Rout
2019-12-03 19:02:41 +05:30
committed by Satya Rama Aditya Pinapala
parent b15ed9edec
commit 5644d01f7a
7 changed files with 71 additions and 18 deletions

View File

@@ -111,6 +111,11 @@ static const struct of_device_id msm_dsi_phy_of_match[] = {
{}
};
int dsi_phy_get_version(struct msm_dsi_phy *phy)
{
return phy->ver_info->version;
}
static int dsi_phy_regmap_init(struct platform_device *pdev,
struct msm_dsi_phy *phy)
{