hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
....@@ -1269,9 +1269,9 @@
12691269 { 500, 0x102}, { 990, 0x002}, { 2500, 0x001},
12701270 };
12711271
1272
-static void samsung_mipi_dcphy_bias_block_enable(struct samsung_mipi_dcphy *samsung)
1272
+static void samsung_mipi_dcphy_bias_block_enable(struct samsung_mipi_dcphy *samsung,
1273
+ struct csi2_dphy *csi_dphy)
12731274 {
1274
- struct csi2_dphy *csi_dphy = samsung->dphy_dev[0];
12751275 u32 bias_con2 = 0x3223;
12761276
12771277 if (csi_dphy &&
....@@ -1466,9 +1466,9 @@
14661466
14671467 /*
14681468 * Divide-by-2 Clock from Serial Clock. Use this when data rate is under
1469
- * 1500Mbps, otherwise divide-by-16 Clock from Serial Clock
1469
+ * 500Msps, otherwise divide-by-16 Clock from Serial Clock
14701470 */
1471
- if (lane_hs_rate < 1500)
1471
+ if (lane_hs_rate < 500)
14721472 val = HSTX_CLK_SEL;
14731473
14741474 val |= T_LPX(timing->lpx);
....@@ -1701,7 +1701,7 @@
17011701 {
17021702 reset_control_assert(samsung->m_phy_rst);
17031703
1704
- samsung_mipi_dcphy_bias_block_enable(samsung);
1704
+ samsung_mipi_dcphy_bias_block_enable(samsung, NULL);
17051705 samsung_mipi_dcphy_pll_configure(samsung);
17061706 samsung_mipi_dphy_clk_lane_timing_init(samsung);
17071707 samsung_mipi_dphy_data_lane_timing_init(samsung);
....@@ -1721,7 +1721,7 @@
17211721 regmap_write(samsung->grf_regmap, MIPI_DCPHY_GRF_CON0, M_CPHY_MODE);
17221722 reset_control_assert(samsung->m_phy_rst);
17231723
1724
- samsung_mipi_dcphy_bias_block_enable(samsung);
1724
+ samsung_mipi_dcphy_bias_block_enable(samsung, NULL);
17251725 samsung_mipi_dcphy_hs_vreg_amp_configure(samsung);
17261726 samsung_mipi_dcphy_pll_configure(samsung);
17271727 samsung_mipi_cphy_timing_init(samsung);
....@@ -2207,7 +2207,7 @@
22072207 if (samsung->s_phy_rst)
22082208 reset_control_assert(samsung->s_phy_rst);
22092209
2210
- samsung_mipi_dcphy_bias_block_enable(samsung);
2210
+ samsung_mipi_dcphy_bias_block_enable(samsung, dphy);
22112211 ret = samsung_dcphy_rx_config_common(dphy, sensor);
22122212 if (ret)
22132213 goto out_streamon;