@@ -1242,6 +1242,10 @@ static const struct qmp_phy_init_tbl x1e80100_qmp_gen4x2_pcie_serdes_tbl[] = {
1242
1242
QMP_PHY_INIT_CFG (QSERDES_V6_COM_PLL_VCO_DC_LEVEL_CTRL , 0x0f ),
1243
1243
};
1244
1244
1245
+ static const struct qmp_phy_init_tbl x1e80100_qmp_gen4x4_pcie_serdes_4ln_tbl [] = {
1246
+ QMP_PHY_INIT_CFG (QSERDES_V6_COM_PLL_BIAS_EN_CLK_BUFLR_EN , 0x1c ),
1247
+ };
1248
+
1245
1249
static const struct qmp_phy_init_tbl x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl [] = {
1246
1250
QMP_PHY_INIT_CFG (QSERDES_V6_LN_SHRD_RXCLK_DIV2_CTRL , 0x01 ),
1247
1251
QMP_PHY_INIT_CFG (QSERDES_V6_LN_SHRD_DFE_DAC_ENABLE1 , 0x88 ),
@@ -3645,6 +3649,41 @@ static const struct qmp_phy_cfg x1e80100_qmp_gen4x2_pciephy_cfg = {
3645
3649
.ln_shrd = x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl ,
3646
3650
.ln_shrd_num = ARRAY_SIZE (x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl ),
3647
3651
},
3652
+
3653
+ .reset_list = sdm845_pciephy_reset_l ,
3654
+ .num_resets = ARRAY_SIZE (sdm845_pciephy_reset_l ),
3655
+ .vreg_list = sm8550_qmp_phy_vreg_l ,
3656
+ .num_vregs = ARRAY_SIZE (sm8550_qmp_phy_vreg_l ),
3657
+ .regs = pciephy_v6_regs_layout ,
3658
+
3659
+ .pwrdn_ctrl = SW_PWRDN | REFCLK_DRV_DSBL ,
3660
+ .phy_status = PHYSTATUS_4_20 ,
3661
+ .has_nocsr_reset = true,
3662
+ };
3663
+
3664
+ static const struct qmp_phy_cfg x1e80100_qmp_gen4x4_pciephy_cfg = {
3665
+ .lanes = 4 ,
3666
+
3667
+ .offsets = & qmp_pcie_offsets_v6_20 ,
3668
+
3669
+ .tbls = {
3670
+ .serdes = x1e80100_qmp_gen4x2_pcie_serdes_tbl ,
3671
+ .serdes_num = ARRAY_SIZE (x1e80100_qmp_gen4x2_pcie_serdes_tbl ),
3672
+ .tx = x1e80100_qmp_gen4x2_pcie_tx_tbl ,
3673
+ .tx_num = ARRAY_SIZE (x1e80100_qmp_gen4x2_pcie_tx_tbl ),
3674
+ .rx = x1e80100_qmp_gen4x2_pcie_rx_tbl ,
3675
+ .rx_num = ARRAY_SIZE (x1e80100_qmp_gen4x2_pcie_rx_tbl ),
3676
+ .pcs = x1e80100_qmp_gen4x2_pcie_pcs_tbl ,
3677
+ .pcs_num = ARRAY_SIZE (x1e80100_qmp_gen4x2_pcie_pcs_tbl ),
3678
+ .pcs_misc = x1e80100_qmp_gen4x2_pcie_pcs_misc_tbl ,
3679
+ .pcs_misc_num = ARRAY_SIZE (x1e80100_qmp_gen4x2_pcie_pcs_misc_tbl ),
3680
+ .ln_shrd = x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl ,
3681
+ .ln_shrd_num = ARRAY_SIZE (x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl ),
3682
+ },
3683
+
3684
+ .serdes_4ln_tbl = x1e80100_qmp_gen4x4_pcie_serdes_4ln_tbl ,
3685
+ .serdes_4ln_num = ARRAY_SIZE (x1e80100_qmp_gen4x4_pcie_serdes_4ln_tbl ),
3686
+
3648
3687
.reset_list = sdm845_pciephy_reset_l ,
3649
3688
.num_resets = ARRAY_SIZE (sdm845_pciephy_reset_l ),
3650
3689
.vreg_list = sm8550_qmp_phy_vreg_l ,
@@ -4415,6 +4454,9 @@ static const struct of_device_id qmp_pcie_of_match_table[] = {
4415
4454
}, {
4416
4455
.compatible = "qcom,x1e80100-qmp-gen4x2-pcie-phy" ,
4417
4456
.data = & x1e80100_qmp_gen4x2_pciephy_cfg ,
4457
+ }, {
4458
+ .compatible = "qcom,x1e80100-qmp-gen4x4-pcie-phy" ,
4459
+ .data = & x1e80100_qmp_gen4x4_pciephy_cfg ,
4418
4460
},
4419
4461
{ },
4420
4462
};
0 commit comments