MLK-21142-2: phy: mixel-mipi: Assert PHY reset in phy_init
authorOliver Brown <oliver.brown@nxp.com>
Wed, 13 Mar 2019 19:15:49 +0000 (14:15 -0500)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
The reset needs to be set in phy_init to handle the warm reset case.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
drivers/phy/phy-mixel-mipi-dsi.c

index 2966d4b..4936126 100644 (file)
@@ -333,6 +333,13 @@ static int mixel_mipi_phy_init(struct phy *phy)
        phy_write(phy, PWR_OFF, DPHY_PD_PLL);
        phy_write(phy, PWR_OFF, DPHY_PD_DPHY);
 
+       if (priv->plat_data->have_sc) {
+               int ret;
+               ret = mixel_mipi_phy_enable(phy, 0);
+               if (ret)
+                       return ret;
+       }
+
        mixel_phy_set_prg_regs(phy);
 
        phy_write(phy, 0x00, DPHY_LOCK_BYP);