Home
last modified time | relevance | path

Searched refs:qphy (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/phy/qualcomm/
Dphy-qcom-pcie2.c52 struct qcom_phy *qphy = phy_get_drvdata(phy); in qcom_pcie2_phy_init() local
55 ret = reset_control_deassert(qphy->phy_reset); in qcom_pcie2_phy_init()
57 dev_err(qphy->dev, "cannot deassert pipe reset\n"); in qcom_pcie2_phy_init()
61 ret = regulator_bulk_enable(ARRAY_SIZE(qphy->vregs), qphy->vregs); in qcom_pcie2_phy_init()
63 reset_control_assert(qphy->phy_reset); in qcom_pcie2_phy_init()
70 struct qcom_phy *qphy = phy_get_drvdata(phy); in qcom_pcie2_phy_power_on() local
75 val = readl(qphy->base + PCIE20_PARF_PHY_REFCLK_CTRL2); in qcom_pcie2_phy_power_on()
77 writel(val, qphy->base + PCIE20_PARF_PHY_REFCLK_CTRL2); in qcom_pcie2_phy_power_on()
82 val = readl(qphy->base + PCIE20_PARF_PHY_REFCLK_CTRL2); in qcom_pcie2_phy_power_on()
84 writel(val, qphy->base + PCIE20_PARF_PHY_REFCLK_CTRL2); in qcom_pcie2_phy_power_on()
[all …]
Dphy-qcom-qusb2.c394 static void qusb2_phy_override_phy_params(struct qusb2_phy *qphy) in qusb2_phy_override_phy_params() argument
396 const struct qusb2_phy_cfg *cfg = qphy->cfg; in qusb2_phy_override_phy_params()
398 if (qphy->override_imp_res_offset) in qusb2_phy_override_phy_params()
399 qusb2_write_mask(qphy->base, QUSB2PHY_IMP_CTRL1, in qusb2_phy_override_phy_params()
400 qphy->imp_res_offset_value << IMP_RES_OFFSET_SHIFT, in qusb2_phy_override_phy_params()
403 if (qphy->override_hstx_trim) in qusb2_phy_override_phy_params()
404 qusb2_write_mask(qphy->base, cfg->regs[QUSB2PHY_PORT_TUNE1], in qusb2_phy_override_phy_params()
405 qphy->hstx_trim_value << HSTX_TRIM_SHIFT, in qusb2_phy_override_phy_params()
408 if (qphy->override_preemphasis) in qusb2_phy_override_phy_params()
409 qusb2_write_mask(qphy->base, cfg->regs[QUSB2PHY_PORT_TUNE1], in qusb2_phy_override_phy_params()
[all …]
Dphy-qcom-qmp.c1298 static int qcom_qmp_phy_com_init(struct qmp_phy *qphy) in qcom_qmp_phy_com_init() argument
1300 struct qcom_qmp *qmp = qphy->qmp; in qcom_qmp_phy_com_init()
1303 void __iomem *pcs = qphy->pcs; in qcom_qmp_phy_com_init()
1444 struct qmp_phy *qphy = phy_get_drvdata(phy); in qcom_qmp_phy_enable() local
1445 struct qcom_qmp *qmp = qphy->qmp; in qcom_qmp_phy_enable()
1447 void __iomem *tx = qphy->tx; in qcom_qmp_phy_enable()
1448 void __iomem *rx = qphy->rx; in qcom_qmp_phy_enable()
1449 void __iomem *pcs = qphy->pcs; in qcom_qmp_phy_enable()
1484 ret = qcom_qmp_phy_com_init(qphy); in qcom_qmp_phy_enable()
1489 ret = reset_control_deassert(qphy->lane_rst); in qcom_qmp_phy_enable()
[all …]