mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/rockchip: dsi: set phy mode before enable phy
Change-Id: I87507e508ca4afb467ab4ee1fa8050103a93606b Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
@@ -535,8 +535,15 @@ static int mipi_dphy_power_on(struct dw_mipi_dsi *dsi)
|
||||
mipi_dphy_rstz_deassert(dsi);
|
||||
usleep_range(1500, 2000);
|
||||
|
||||
if (dsi->dphy.phy)
|
||||
if (dsi->dphy.phy) {
|
||||
ret = phy_set_mode(dsi->dphy.phy, PHY_MODE_VIDEO_MIPI);
|
||||
if (ret) {
|
||||
dev_err(dsi->dev, "failed to set phy mode: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
phy_power_on(dsi->dphy.phy);
|
||||
}
|
||||
|
||||
ret = regmap_read_poll_timeout(dsi->regmap, DSI_PHY_STATUS,
|
||||
val, val & PHY_LOCK,
|
||||
|
||||
Reference in New Issue
Block a user