drm/msm/dsi: Updata LNn_CFG4 register settings for 28nm PHY
PATCH 1/1 drm/msm/dsi: Updata LNn_CFG4 register settings for 28nm PHY
The current settings for 28nm PHY data lane CFG4 registers do not work with certain panels. This change is to modify them to hw recommended values.
Signed-off-by Hai Li <[email protected]>
--- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c +2 -4
@@ -99,16 +99,14 @@ static int dsi_28nm_phy_enable(struct msm_dsi_phy *phy, int src_pll_id,dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_1 (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_2 (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_3 (i),0 ); +dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_TEST_DATAPATH (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_DEBUG_SEL (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_TEST_STR_0 (i),0x1 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_TEST_STR_1 (i),0x97 ); } -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (0 ),0 ); -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (1 ),0x5 ); -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (2 ),0xa ); -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (3 ),0xf ); +dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_CFG_4,0 );dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_CFG_1,0xc0 );dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_TEST_STR0,0x1 );dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_TEST_STR1,0xbb );
Signature · 7 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/1 drm/msm/dsi: Updata LNn_CFG4 register settings for 28nm PHY
The current settings for 28nm PHY data lane CFG4 registers do not work with certain panels. This change is to modify them to hw recommended values.
Signed-off-by Hai Li <[email protected]>
--- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c +2 -4
@@ -99,16 +99,14 @@ static int dsi_28nm_phy_enable(struct msm_dsi_phy *phy, int src_pll_id,dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_1 (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_2 (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_3 (i),0 ); +dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_TEST_DATAPATH (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_DEBUG_SEL (i),0 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_TEST_STR_0 (i),0x1 );dsi_phy_write (base +REG_DSI_28nm_PHY_LN_TEST_STR_1 (i),0x97 ); } -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (0 ),0 ); -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (1 ),0x5 ); -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (2 ),0xa ); -dsi_phy_write (base +REG_DSI_28nm_PHY_LN_CFG_4 (3 ),0xf ); +dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_CFG_4,0 );dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_CFG_1,0xc0 );dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_TEST_STR0,0x1 );dsi_phy_write (base + REG_DSI_28nm_PHY_LNCK_TEST_STR1,0xbb );
Signature · 7 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel