@@ -903,17 +903,17 @@ struct qmp_combo {
903
903
struct qmp_phy_dp_clks * dp_clks ;
904
904
};
905
905
906
- static void qcom_qmp_v3_phy_dp_aux_init (struct qmp_combo * qmp );
907
- static void qcom_qmp_v3_phy_configure_dp_tx (struct qmp_combo * qmp );
908
- static int qcom_qmp_v3_phy_configure_dp_phy (struct qmp_combo * qmp );
909
- static int qcom_qmp_v3_dp_phy_calibrate (struct qmp_combo * qmp );
906
+ static void qmp_v3_dp_aux_init (struct qmp_combo * qmp );
907
+ static void qmp_v3_configure_dp_tx (struct qmp_combo * qmp );
908
+ static int qmp_v3_configure_dp_phy (struct qmp_combo * qmp );
909
+ static int qmp_v3_calibrate_dp_phy (struct qmp_combo * qmp );
910
910
911
- static void qcom_qmp_v4_phy_dp_aux_init (struct qmp_combo * qmp );
912
- static void qcom_qmp_v4_phy_configure_dp_tx (struct qmp_combo * qmp );
913
- static int qcom_qmp_v4_phy_configure_dp_phy (struct qmp_combo * qmp );
914
- static int qcom_qmp_v4_dp_phy_calibrate (struct qmp_combo * qmp );
911
+ static void qmp_v4_dp_aux_init (struct qmp_combo * qmp );
912
+ static void qmp_v4_configure_dp_tx (struct qmp_combo * qmp );
913
+ static int qmp_v4_configure_dp_phy (struct qmp_combo * qmp );
914
+ static int qmp_v4_calibrate_dp_phy (struct qmp_combo * qmp );
915
915
916
- static int qcom_qmp_v5_phy_configure_dp_phy (struct qmp_combo * qmp );
916
+ static int qmp_v5_configure_dp_phy (struct qmp_combo * qmp );
917
917
918
918
static inline void qphy_setbits (void __iomem * base , u32 offset , u32 val )
919
919
{
@@ -991,10 +991,10 @@ static const struct qmp_phy_cfg sc7180_usb3dpphy_cfg = {
991
991
.swing_hbr3_hbr2 = & qmp_dp_v3_voltage_swing_hbr3_hbr2 ,
992
992
.pre_emphasis_hbr3_hbr2 = & qmp_dp_v3_pre_emphasis_hbr3_hbr2 ,
993
993
994
- .dp_aux_init = qcom_qmp_v3_phy_dp_aux_init ,
995
- .configure_dp_tx = qcom_qmp_v3_phy_configure_dp_tx ,
996
- .configure_dp_phy = qcom_qmp_v3_phy_configure_dp_phy ,
997
- .calibrate_dp_phy = qcom_qmp_v3_dp_phy_calibrate ,
994
+ .dp_aux_init = qmp_v3_dp_aux_init ,
995
+ .configure_dp_tx = qmp_v3_configure_dp_tx ,
996
+ .configure_dp_phy = qmp_v3_configure_dp_phy ,
997
+ .calibrate_dp_phy = qmp_v3_calibrate_dp_phy ,
998
998
999
999
.clk_list = qmp_v3_phy_clk_l ,
1000
1000
.num_clks = ARRAY_SIZE (qmp_v3_phy_clk_l ),
@@ -1036,10 +1036,10 @@ static const struct qmp_phy_cfg sdm845_usb3dpphy_cfg = {
1036
1036
.swing_hbr3_hbr2 = & qmp_dp_v3_voltage_swing_hbr3_hbr2 ,
1037
1037
.pre_emphasis_hbr3_hbr2 = & qmp_dp_v3_pre_emphasis_hbr3_hbr2 ,
1038
1038
1039
- .dp_aux_init = qcom_qmp_v3_phy_dp_aux_init ,
1040
- .configure_dp_tx = qcom_qmp_v3_phy_configure_dp_tx ,
1041
- .configure_dp_phy = qcom_qmp_v3_phy_configure_dp_phy ,
1042
- .calibrate_dp_phy = qcom_qmp_v3_dp_phy_calibrate ,
1039
+ .dp_aux_init = qmp_v3_dp_aux_init ,
1040
+ .configure_dp_tx = qmp_v3_configure_dp_tx ,
1041
+ .configure_dp_phy = qmp_v3_configure_dp_phy ,
1042
+ .calibrate_dp_phy = qmp_v3_calibrate_dp_phy ,
1043
1043
1044
1044
.clk_list = qmp_v3_phy_clk_l ,
1045
1045
.num_clks = ARRAY_SIZE (qmp_v3_phy_clk_l ),
@@ -1083,10 +1083,10 @@ static const struct qmp_phy_cfg sc8180x_usb3dpphy_cfg = {
1083
1083
.swing_hbr3_hbr2 = & qmp_dp_v3_voltage_swing_hbr3_hbr2 ,
1084
1084
.pre_emphasis_hbr3_hbr2 = & qmp_dp_v3_pre_emphasis_hbr3_hbr2 ,
1085
1085
1086
- .dp_aux_init = qcom_qmp_v4_phy_dp_aux_init ,
1087
- .configure_dp_tx = qcom_qmp_v4_phy_configure_dp_tx ,
1088
- .configure_dp_phy = qcom_qmp_v4_phy_configure_dp_phy ,
1089
- .calibrate_dp_phy = qcom_qmp_v4_dp_phy_calibrate ,
1086
+ .dp_aux_init = qmp_v4_dp_aux_init ,
1087
+ .configure_dp_tx = qmp_v4_configure_dp_tx ,
1088
+ .configure_dp_phy = qmp_v4_configure_dp_phy ,
1089
+ .calibrate_dp_phy = qmp_v4_calibrate_dp_phy ,
1090
1090
1091
1091
.clk_list = qmp_v4_phy_clk_l ,
1092
1092
.num_clks = ARRAY_SIZE (qmp_v4_phy_clk_l ),
@@ -1129,10 +1129,10 @@ static const struct qmp_phy_cfg sc8280xp_usb43dpphy_cfg = {
1129
1129
.swing_hbr3_hbr2 = & qmp_dp_v5_voltage_swing_hbr3_hbr2 ,
1130
1130
.pre_emphasis_hbr3_hbr2 = & qmp_dp_v5_pre_emphasis_hbr3_hbr2 ,
1131
1131
1132
- .dp_aux_init = qcom_qmp_v4_phy_dp_aux_init ,
1133
- .configure_dp_tx = qcom_qmp_v4_phy_configure_dp_tx ,
1134
- .configure_dp_phy = qcom_qmp_v5_phy_configure_dp_phy ,
1135
- .calibrate_dp_phy = qcom_qmp_v4_dp_phy_calibrate ,
1132
+ .dp_aux_init = qmp_v4_dp_aux_init ,
1133
+ .configure_dp_tx = qmp_v4_configure_dp_tx ,
1134
+ .configure_dp_phy = qmp_v5_configure_dp_phy ,
1135
+ .calibrate_dp_phy = qmp_v4_calibrate_dp_phy ,
1136
1136
1137
1137
.clk_list = qmp_v4_phy_clk_l ,
1138
1138
.num_clks = ARRAY_SIZE (qmp_v4_phy_clk_l ),
@@ -1175,10 +1175,10 @@ static const struct qmp_phy_cfg sm8250_usb3dpphy_cfg = {
1175
1175
.swing_hbr3_hbr2 = & qmp_dp_v3_voltage_swing_hbr3_hbr2 ,
1176
1176
.pre_emphasis_hbr3_hbr2 = & qmp_dp_v3_pre_emphasis_hbr3_hbr2 ,
1177
1177
1178
- .dp_aux_init = qcom_qmp_v4_phy_dp_aux_init ,
1179
- .configure_dp_tx = qcom_qmp_v4_phy_configure_dp_tx ,
1180
- .configure_dp_phy = qcom_qmp_v4_phy_configure_dp_phy ,
1181
- .calibrate_dp_phy = qcom_qmp_v4_dp_phy_calibrate ,
1178
+ .dp_aux_init = qmp_v4_dp_aux_init ,
1179
+ .configure_dp_tx = qmp_v4_configure_dp_tx ,
1180
+ .configure_dp_phy = qmp_v4_configure_dp_phy ,
1181
+ .calibrate_dp_phy = qmp_v4_calibrate_dp_phy ,
1182
1182
1183
1183
.clk_list = qmp_v4_sm8250_usbphy_clk_l ,
1184
1184
.num_clks = ARRAY_SIZE (qmp_v4_sm8250_usbphy_clk_l ),
@@ -1251,7 +1251,7 @@ static int qmp_combo_dp_serdes_init(struct qmp_combo *qmp)
1251
1251
return 0 ;
1252
1252
}
1253
1253
1254
- static void qcom_qmp_v3_phy_dp_aux_init (struct qmp_combo * qmp )
1254
+ static void qmp_v3_dp_aux_init (struct qmp_combo * qmp )
1255
1255
{
1256
1256
writel (DP_PHY_PD_CTL_PWRDN | DP_PHY_PD_CTL_AUX_PWRDN |
1257
1257
DP_PHY_PD_CTL_PLL_PWRDN | DP_PHY_PD_CTL_DP_CLAMP_EN ,
@@ -1332,7 +1332,7 @@ static int qmp_combo_configure_dp_swing(struct qmp_combo *qmp,
1332
1332
return 0 ;
1333
1333
}
1334
1334
1335
- static void qcom_qmp_v3_phy_configure_dp_tx (struct qmp_combo * qmp )
1335
+ static void qmp_v3_configure_dp_tx (struct qmp_combo * qmp )
1336
1336
{
1337
1337
const struct phy_configure_opts_dp * dp_opts = & qmp -> dp_opts ;
1338
1338
u32 bias_en , drvr_en ;
@@ -1385,7 +1385,7 @@ static bool qmp_combo_configure_dp_mode(struct qmp_combo *qmp)
1385
1385
return reverse ;
1386
1386
}
1387
1387
1388
- static int qcom_qmp_v3_phy_configure_dp_phy (struct qmp_combo * qmp )
1388
+ static int qmp_v3_configure_dp_phy (struct qmp_combo * qmp )
1389
1389
{
1390
1390
const struct qmp_phy_dp_clks * dp_clks = qmp -> dp_clks ;
1391
1391
const struct phy_configure_opts_dp * dp_opts = & qmp -> dp_opts ;
@@ -1462,7 +1462,7 @@ static int qcom_qmp_v3_phy_configure_dp_phy(struct qmp_combo *qmp)
1462
1462
* We need to calibrate the aux setting here as many times
1463
1463
* as the caller tries
1464
1464
*/
1465
- static int qcom_qmp_v3_dp_phy_calibrate (struct qmp_combo * qmp )
1465
+ static int qmp_v3_calibrate_dp_phy (struct qmp_combo * qmp )
1466
1466
{
1467
1467
static const u8 cfg1_settings [] = { 0x13 , 0x23 , 0x1d };
1468
1468
u8 val ;
@@ -1476,7 +1476,7 @@ static int qcom_qmp_v3_dp_phy_calibrate(struct qmp_combo *qmp)
1476
1476
return 0 ;
1477
1477
}
1478
1478
1479
- static void qcom_qmp_v4_phy_dp_aux_init (struct qmp_combo * qmp )
1479
+ static void qmp_v4_dp_aux_init (struct qmp_combo * qmp )
1480
1480
{
1481
1481
writel (DP_PHY_PD_CTL_PWRDN | DP_PHY_PD_CTL_PSR_PWRDN | DP_PHY_PD_CTL_AUX_PWRDN |
1482
1482
DP_PHY_PD_CTL_PLL_PWRDN | DP_PHY_PD_CTL_DP_CLAMP_EN ,
@@ -1503,7 +1503,7 @@ static void qcom_qmp_v4_phy_dp_aux_init(struct qmp_combo *qmp)
1503
1503
qmp -> dp_pcs + QSERDES_V4_DP_PHY_AUX_INTERRUPT_MASK );
1504
1504
}
1505
1505
1506
- static void qcom_qmp_v4_phy_configure_dp_tx (struct qmp_combo * qmp )
1506
+ static void qmp_v4_configure_dp_tx (struct qmp_combo * qmp )
1507
1507
{
1508
1508
/* Program default values before writing proper values */
1509
1509
writel (0x27 , qmp -> dp_tx + QSERDES_V4_TX_TX_DRV_LVL );
@@ -1516,7 +1516,7 @@ static void qcom_qmp_v4_phy_configure_dp_tx(struct qmp_combo *qmp)
1516
1516
QSERDES_V4_TX_TX_EMP_POST1_LVL );
1517
1517
}
1518
1518
1519
- static int qcom_qmp_v45_phy_configure_dp_phy (struct qmp_combo * qmp )
1519
+ static int qmp_v45_configure_dp_phy (struct qmp_combo * qmp )
1520
1520
{
1521
1521
const struct qmp_phy_dp_clks * dp_clks = qmp -> dp_clks ;
1522
1522
const struct phy_configure_opts_dp * dp_opts = & qmp -> dp_opts ;
@@ -1606,15 +1606,15 @@ static int qcom_qmp_v45_phy_configure_dp_phy(struct qmp_combo *qmp)
1606
1606
return 0 ;
1607
1607
}
1608
1608
1609
- static int qcom_qmp_v4_phy_configure_dp_phy (struct qmp_combo * qmp )
1609
+ static int qmp_v4_configure_dp_phy (struct qmp_combo * qmp )
1610
1610
{
1611
1611
const struct phy_configure_opts_dp * dp_opts = & qmp -> dp_opts ;
1612
1612
u32 bias0_en , drvr0_en , bias1_en , drvr1_en ;
1613
1613
bool reverse = false;
1614
1614
u32 status ;
1615
1615
int ret ;
1616
1616
1617
- ret = qcom_qmp_v45_phy_configure_dp_phy (qmp );
1617
+ ret = qmp_v45_configure_dp_phy (qmp );
1618
1618
if (ret < 0 )
1619
1619
return ret ;
1620
1620
@@ -1668,15 +1668,15 @@ static int qcom_qmp_v4_phy_configure_dp_phy(struct qmp_combo *qmp)
1668
1668
return 0 ;
1669
1669
}
1670
1670
1671
- static int qcom_qmp_v5_phy_configure_dp_phy (struct qmp_combo * qmp )
1671
+ static int qmp_v5_configure_dp_phy (struct qmp_combo * qmp )
1672
1672
{
1673
1673
const struct phy_configure_opts_dp * dp_opts = & qmp -> dp_opts ;
1674
1674
u32 bias0_en , drvr0_en , bias1_en , drvr1_en ;
1675
1675
bool reverse = false;
1676
1676
u32 status ;
1677
1677
int ret ;
1678
1678
1679
- ret = qcom_qmp_v45_phy_configure_dp_phy (qmp );
1679
+ ret = qmp_v45_configure_dp_phy (qmp );
1680
1680
if (ret < 0 )
1681
1681
return ret ;
1682
1682
@@ -1729,7 +1729,7 @@ static int qcom_qmp_v5_phy_configure_dp_phy(struct qmp_combo *qmp)
1729
1729
* We need to calibrate the aux setting here as many times
1730
1730
* as the caller tries
1731
1731
*/
1732
- static int qcom_qmp_v4_dp_phy_calibrate (struct qmp_combo * qmp )
1732
+ static int qmp_v4_calibrate_dp_phy (struct qmp_combo * qmp )
1733
1733
{
1734
1734
static const u8 cfg1_settings [] = { 0x20 , 0x13 , 0x23 , 0x1d };
1735
1735
u8 val ;
0 commit comments