diff options
| author | Dhaval Patel <pdhaval@codeaurora.org> | 2015-02-05 23:39:46 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:37:49 -0700 |
| commit | abb0f055e1a3b6e2cc5efbd976be804f96c8ad5a (patch) | |
| tree | 64f19a84d5a78908bfa6bebcc5a2841dfc0e34f7 | |
| parent | 5a64010c84d41cbb0fd48c73254767a8592dd71d (diff) | |
msm: mdss: fix phy configuration for thulium target
Read HW revision before configuring the PHY when
continuous splash is not enabled and fix the thulium
target phy configuration.
Change-Id: Iadaef93b6d31adee4c54f0b75f7343bd01223dfe
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/msm_mdss_io_8974.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/fbdev/msm/msm_mdss_io_8974.c b/drivers/video/fbdev/msm/msm_mdss_io_8974.c index 285e24c70642..93e01efe3541 100644 --- a/drivers/video/fbdev/msm/msm_mdss_io_8974.c +++ b/drivers/video/fbdev/msm/msm_mdss_io_8974.c @@ -429,7 +429,6 @@ static void mdss_dsi_thulium_phy_config(struct mdss_dsi_ctrl_pdata *ctrl) { struct mdss_dsi_phy_ctrl *pd; int j, off, ln, cnt, ln_off; - u32 data; char *ip; void __iomem *base; @@ -438,9 +437,7 @@ static void mdss_dsi_thulium_phy_config(struct mdss_dsi_ctrl_pdata *ctrl) MIPI_OUTP((ctrl->phy_io.base) + DSIPHY_CMN_LDO_CNTRL, 0x1c); /* clk_en */ - data = MIPI_INP((ctrl->phy_io.base) + DSIPHY_CMN_GLBL_TEST_CTRL); - data |= BIT(0); - MIPI_OUTP((ctrl->phy_io.base) + DSIPHY_CMN_GLBL_TEST_CTRL, data); + MIPI_OUTP((ctrl->phy_io.base) + DSIPHY_CMN_GLBL_TEST_CTRL, 0x1); if (pd->lanecfg_len != 20) { pr_err("%s: wrong lane cfg\n", __func__); @@ -1445,6 +1442,7 @@ static int mdss_dsi_core_power_ctrl(struct mdss_dsi_ctrl_pdata *ctrl, * when continuous splash screen is enabled. */ if (!pdata->panel_info.cont_splash_enabled) { + mdss_dsi_read_hw_revision(ctrl); mdss_dsi_phy_init(ctrl); mdss_dsi_ctrl_setup(ctrl); } |
