Skip to content

Commit 5cee04a

Browse files
superna9999vinodkoul
authored andcommitted
phy: qcom: qmp-pcie: register PHY AUX clock for SM8[456]50 4x2 PCIe PHY
The PCIe Gen4x2 PHY found in the SM8[456]50 SoCs have a second clock, enable this second clock by setting the proper 20MHz hardware rate in the Gen4x2 SM8[456]50 aux_clock_rate config fields. Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/20240322-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v2-4-3ec0a966d52f@linaro.org Signed-off-by: Vinod Koul <[email protected]>
1 parent 583ca9c commit 5cee04a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/phy/qualcomm/phy-qcom-qmp-pcie.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,6 +3141,9 @@ static const struct qmp_phy_cfg sm8450_qmp_gen4x2_pciephy_cfg = {
31413141

31423142
.pwrdn_ctrl = SW_PWRDN | REFCLK_DRV_DSBL,
31433143
.phy_status = PHYSTATUS_4_20,
3144+
3145+
/* 20MHz PHY AUX Clock */
3146+
.aux_clock_rate = 20000000,
31443147
};
31453148

31463149
static const struct qmp_phy_cfg sm8550_qmp_gen3x2_pciephy_cfg = {
@@ -3198,6 +3201,9 @@ static const struct qmp_phy_cfg sm8550_qmp_gen4x2_pciephy_cfg = {
31983201
.pwrdn_ctrl = SW_PWRDN | REFCLK_DRV_DSBL,
31993202
.phy_status = PHYSTATUS_4_20,
32003203
.has_nocsr_reset = true,
3204+
3205+
/* 20MHz PHY AUX Clock */
3206+
.aux_clock_rate = 20000000,
32013207
};
32023208

32033209
static const struct qmp_phy_cfg sm8650_qmp_gen4x2_pciephy_cfg = {
@@ -3228,6 +3234,9 @@ static const struct qmp_phy_cfg sm8650_qmp_gen4x2_pciephy_cfg = {
32283234
.pwrdn_ctrl = SW_PWRDN | REFCLK_DRV_DSBL,
32293235
.phy_status = PHYSTATUS_4_20,
32303236
.has_nocsr_reset = true,
3237+
3238+
/* 20MHz PHY AUX Clock */
3239+
.aux_clock_rate = 20000000,
32313240
};
32323241

32333242
static const struct qmp_phy_cfg sa8775p_qmp_gen4x2_pciephy_cfg = {

0 commit comments

Comments
 (0)