From 645e752c5a84baeb21015cdc85fc05b7d16312c8 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Sat, 11 May 2024 01:13:52 +0000 Subject: [PATCH] disable i2c1 --- u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c b/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c index 4044db6..bc718d0 100644 --- a/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c +++ b/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c @@ -592,9 +592,21 @@ struct phy_configure_opts_dp *dp) { u8 lane; + u32 status; + int ret; for (lane = 0; lane < dp->lanes; lane++) rockchip_hdptx_phy_set_voltage(hdptx, dp, lane); + + reset_deassert(&hdptx->lane_reset); + + ret = regmap_read_poll_timeout(hdptx->grf, HDPTXPHY_GRF_STATUS0, + status, FIELD_GET(PHY_RDY, status), + 50, 5000); + if (ret) { + dev_err(hdptx->dev, "timeout waiting for phy_rdy\n"); + return ret; + } return 0; } @@ -676,17 +688,6 @@ regmap_update_bits(hdptx->regmap, 0x081c, LANE_EN, FIELD_PREP(LANE_EN, GENMASK(dp->lanes - 1, 0))); - - reset_deassert(&hdptx->lane_reset); - udelay(10); - - ret = regmap_read_poll_timeout(hdptx->grf, HDPTXPHY_GRF_STATUS0, - status, FIELD_GET(PHY_RDY, status), - 50, 1000); - if (ret) { - dev_err(hdptx->dev, "timeout waiting for phy_rdy\n"); - return ret; - } return 0; } -- Gitblit v1.6.2