Skip to content

Commit 0c5ec57

Browse files
Kriskura176767Komal-Bajaj
authored andcommitted
phy: qcom-qusb2: Add support for Shikra
Add init sequence and phy configuration for Shikra. Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
1 parent c39ccb2 commit 0c5ec57

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

drivers/phy/qualcomm/phy-qcom-qusb2.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,19 @@ static const struct qusb2_phy_cfg sdm660_phy_cfg = {
381381
.autoresume_en = BIT(3),
382382
};
383383

384+
static const struct qusb2_phy_cfg shikra_phy_cfg = {
385+
.tbl = qcs615_init_tbl,
386+
.tbl_num = ARRAY_SIZE(qcs615_init_tbl),
387+
.regs = ipq6018_regs_layout,
388+
389+
.has_pll_test = true,
390+
.se_clk_scheme_default = true,
391+
.disable_ctrl = (CLAMP_N_EN | FREEZIO_N | POWER_DOWN),
392+
.mask_core_ready = PLL_LOCKED,
393+
.autoresume_en = BIT(3),
394+
.update_tune1_with_efuse = false,
395+
};
396+
384397
static const struct qusb2_phy_cfg sm6115_phy_cfg = {
385398
.tbl = sm6115_init_tbl,
386399
.tbl_num = ARRAY_SIZE(sm6115_init_tbl),
@@ -958,6 +971,9 @@ static const struct of_device_id qusb2_phy_of_match_table[] = {
958971
}, {
959972
.compatible = "qcom,sdm660-qusb2-phy",
960973
.data = &sdm660_phy_cfg,
974+
}, {
975+
.compatible = "qcom,shikra-qusb2-phy",
976+
.data = &shikra_phy_cfg,
961977
}, {
962978
.compatible = "qcom,sm4250-qusb2-phy",
963979
.data = &sm6115_phy_cfg,

0 commit comments

Comments
 (0)