Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/phy/qualcomm/
H A 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 …]
H A Dphy-qcom-qusb2.c420 static void qusb2_phy_override_phy_params(struct qusb2_phy *qphy) in qusb2_phy_override_phy_params() argument
422 const struct qusb2_phy_cfg *cfg = qphy->cfg; in qusb2_phy_override_phy_params()
423 struct override_params *or = &qphy->overrides; in qusb2_phy_override_phy_params()
426 qusb2_write_mask(qphy->base, QUSB2PHY_IMP_CTRL1, in qusb2_phy_override_phy_params()
431 qusb2_write_mask(qphy->base, QUSB2PHY_PLL_BIAS_CONTROL_2, in qusb2_phy_override_phy_params()
436 qusb2_write_mask(qphy->base, QUSB2PHY_CHG_CTRL2, in qusb2_phy_override_phy_params()
441 qusb2_write_mask(qphy->base, cfg->regs[QUSB2PHY_PORT_TUNE1], in qusb2_phy_override_phy_params()
446 qusb2_write_mask(qphy->base, cfg->regs[QUSB2PHY_PORT_TUNE1], in qusb2_phy_override_phy_params()
453 qusb2_setbits(qphy->base, in qusb2_phy_override_phy_params()
457 qusb2_clrbits(qphy->base, in qusb2_phy_override_phy_params()
[all …]
H A Dphy-qcom-qmp.c1936 struct qmp_phy *qphy; member
2621 static int qcom_qmp_phy_serdes_init(struct qmp_phy *qphy) in qcom_qmp_phy_serdes_init() argument
2623 struct qcom_qmp *qmp = qphy->qmp; in qcom_qmp_phy_serdes_init()
2624 const struct qmp_phy_cfg *cfg = qphy->cfg; in qcom_qmp_phy_serdes_init()
2625 void __iomem *serdes = qphy->serdes; in qcom_qmp_phy_serdes_init()
2626 const struct phy_configure_opts_dp *dp_opts = &qphy->dp_opts; in qcom_qmp_phy_serdes_init()
2685 static void qcom_qmp_phy_dp_aux_init(struct qmp_phy *qphy) in qcom_qmp_phy_dp_aux_init() argument
2689 qphy->pcs + QSERDES_V3_DP_PHY_PD_CTL); in qcom_qmp_phy_dp_aux_init()
2694 qphy->serdes + QSERDES_V3_COM_BIAS_EN_CLKBUFLR_EN); in qcom_qmp_phy_dp_aux_init()
2696 writel(DP_PHY_PD_CTL_PSR_PWRDN, qphy->pcs + QSERDES_V3_DP_PHY_PD_CTL); in qcom_qmp_phy_dp_aux_init()
[all …]