drm/rockchip/rk628: use stand PHY_MODE definition

Switch from rockchip defined PHY_MODE_VIDEO_xx
to stand PHY_MODE_xx

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Id04fd6eba6438a41679044d1998cfb207aad02ca
This commit is contained in:
Andy Yan
2021-06-24 19:41:08 +08:00
committed by Tao Huang
parent c9bebffd08
commit bd577027f6
3 changed files with 6 additions and 6 deletions

View File

@@ -239,12 +239,12 @@ static int rk628_combtxphy_power_on(struct phy *phy)
SW_TX_IDLE(0x3ff) | SW_TX_PD(0x3ff) | SW_PD_PLL);
switch (combtxphy->mode) {
case PHY_MODE_VIDEO_MIPI:
case PHY_MODE_MIPI_DPHY:
regmap_update_bits(combtxphy->grf, GRF_POST_PROC_CON,
SW_TXPHY_REFCLK_SEL_MASK,
SW_TXPHY_REFCLK_SEL(0));
return rk628_combtxphy_dsi_power_on(combtxphy);
case PHY_MODE_VIDEO_LVDS:
case PHY_MODE_LVDS:
regmap_update_bits(combtxphy->grf, GRF_POST_PROC_CON,
SW_TXPHY_REFCLK_SEL_MASK,
SW_TXPHY_REFCLK_SEL(1));
@@ -283,7 +283,7 @@ static int rk628_combtxphy_set_mode(struct phy *phy, enum phy_mode mode)
unsigned long fvco, fpfd;
switch (mode) {
case PHY_MODE_VIDEO_MIPI:
case PHY_MODE_MIPI_DPHY:
{
unsigned int fhsc = bus_width >> 8;
unsigned int flags = bus_width & 0xff;
@@ -321,7 +321,7 @@ static int rk628_combtxphy_set_mode(struct phy *phy, enum phy_mode mode)
phy_set_bus_width(phy, fhsc);
break;
}
case PHY_MODE_VIDEO_LVDS:
case PHY_MODE_LVDS:
{
unsigned int flags = bus_width & 0xff;
unsigned int rate = (bus_width >> 8) * 7;

View File

@@ -1121,7 +1121,7 @@ static void rk628_dsi_bridge_enable(struct drm_bridge *bridge)
bus_width |= COMBTXPHY_MODULEA_EN;
phy_set_bus_width(dsi->phy, bus_width);
ret = phy_set_mode(dsi->phy, PHY_MODE_VIDEO_MIPI);
ret = phy_set_mode(dsi->phy, PHY_MODE_MIPI_DPHY);
if (ret) {
dev_err(dsi->dev, "failed to set phy mode: %d\n", ret);
return;

View File

@@ -193,7 +193,7 @@ static void rk628_lvds_bridge_enable(struct drm_bridge *bridge)
bus_width |= (mode->clock / 1000) << 8;
phy_set_bus_width(lvds->phy, bus_width);
ret = phy_set_mode(lvds->phy, PHY_MODE_VIDEO_LVDS);
ret = phy_set_mode(lvds->phy, PHY_MODE_LVDS);
if (ret) {
dev_err(lvds->dev, "failed to set phy mode: %d\n", ret);
return;