msm: mdss: handle proper configuration of DSI PHY GLBL control
In case of independent dual DSI configuration, the GLBL_TEST_CTRL register for both the DSI PHY should be set to 1. This change adds proper check to handle this case. Change-Id: I6c16c1a359541ea0d3c5430a331f47b55e4bd8cc Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
This commit is contained in:
parent
9e41f712a9
commit
ac94acf4a9
1 changed files with 9 additions and 4 deletions
|
@ -649,11 +649,16 @@ static void mdss_dsi_28nm_phy_config(struct mdss_dsi_ctrl_pdata *ctrl_pdata)
|
|||
wmb();
|
||||
|
||||
/* DSI_0_PHY_DSIPHY_GLBL_TEST_CTRL */
|
||||
if (((ctrl_pdata->panel_data).panel_info.pdest == DISPLAY_1) ||
|
||||
(ctrl_pdata->shared_data->hw_rev == MDSS_DSI_HW_REV_103_1))
|
||||
if (!mdss_dsi_is_hw_config_split(ctrl_pdata->shared_data)) {
|
||||
MIPI_OUTP((ctrl_pdata->phy_io.base) + 0x01d4, 0x01);
|
||||
else
|
||||
MIPI_OUTP((ctrl_pdata->phy_io.base) + 0x01d4, 0x00);
|
||||
} else {
|
||||
if (((ctrl_pdata->panel_data).panel_info.pdest == DISPLAY_1) ||
|
||||
(ctrl_pdata->shared_data->hw_rev == MDSS_DSI_HW_REV_103_1))
|
||||
MIPI_OUTP((ctrl_pdata->phy_io.base) + 0x01d4, 0x01);
|
||||
else
|
||||
MIPI_OUTP((ctrl_pdata->phy_io.base) + 0x01d4, 0x00);
|
||||
}
|
||||
/* ensure DSIPHY_GLBL_TEST_CTRL is set */
|
||||
wmb();
|
||||
|
||||
/* MMSS_DSI_0_PHY_DSIPHY_CTRL_0 */
|
||||
|
|
Loading…
Add table
Reference in a new issue