Beispiel #1
0
int ufs_qcom_phy_init_vregulators(struct ufs_qcom_phy *phy_common)
{
    int err;

    err = ufs_qcom_phy_init_vreg(phy_common->dev, &phy_common->vdda_pll,
                                 "vdda-pll");
    if (err)
        goto out;

    err = ufs_qcom_phy_init_vreg(phy_common->dev, &phy_common->vdda_phy,
                                 "vdda-phy");

    if (err)
        goto out;

    /* vddp-ref-clk-* properties are optional */
    __ufs_qcom_phy_init_vreg(phy_common->dev, &phy_common->vddp_ref_clk,
                             "vddp-ref-clk", true);
out:
    return err;
}
Beispiel #2
0
int ufs_qcom_phy_init_vregulators(struct ufs_qcom_phy *phy_common)
{
	int err;

	err = ufs_qcom_phy_init_vreg(phy_common->dev, &phy_common->vdda_pll,
		"vdda-pll");
	if (err)
		goto out;

	err = ufs_qcom_phy_init_vreg(phy_common->dev, &phy_common->vdda_phy,
		"vdda-phy");

	if (err)
		goto out;

	err = ufs_qcom_phy_init_vreg(phy_common->dev, &phy_common->vddp_ref_clk,
				     "vddp-ref-clk");

out:
	return err;
}