summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeith.zhao <keith.zhao@starfivetech.com>2024-02-27 11:52:01 +0300
committerkeith.zhao <keith.zhao@starfivetech.com>2024-02-28 11:29:43 +0300
commit651b960dff351705a6e437856c381075bcae7f75 (patch)
tree958426dffb5c35d9322e363d1771734cb6859488
parente1850338f6bd1773263a94aa9861df1cfcffa729 (diff)
downloadlinux-651b960dff351705a6e437856c381075bcae7f75.tar.xz
vout: mipi: update dphy config
for history reason , the dphy bitrate always be 750M need fixup. Signed-off-by: keith.zhao <keith.zhao@starfivetech.com>
-rw-r--r--[-rwxr-xr-x]drivers/phy/m31/phy-m31-dphy-tx0.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/phy/m31/phy-m31-dphy-tx0.c b/drivers/phy/m31/phy-m31-dphy-tx0.c
index b043f95518ec..f86fd8d83a7a 100755..100644
--- a/drivers/phy/m31/phy-m31-dphy-tx0.c
+++ b/drivers/phy/m31/phy-m31-dphy-tx0.c
@@ -526,8 +526,9 @@ static int sys_m31_dphy_tx_configure(struct phy *phy, union phy_configure_opts *
const struct m31_dphy_config *p;
const uint32_t AON_POWER_READY_N_active = 0;
dphy = phy_get_drvdata(phy);
- //bitrate = 680000000;//1228M 60fps
- bitrate = 750000000;//1188M 60fps
+
+ bitrate = opts->mipi_dphy.hs_clk_rate;//1188M 60fps
+ dev_info(dphy->dev, "%s bitrate = %ld\n", __func__, bitrate);
sf_dphy_set_reg(dphy->topsys + 0x8, 0x10,
RG_CDTX_L0N_HSTX_RES_SHIFT, RG_CDTX_L0N_HSTX_RES_MASK);