Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0136aa15 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "phy: qcom-ufs: remove hard-coded vdda-phy voltage definition"

parents 50bfbd11 f9b0ee99
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -15,7 +15,6 @@
#include "phy-qcom-ufs-qmp-14nm.h"
#include "phy-qcom-ufs-qmp-14nm.h"


#define UFS_PHY_NAME "ufs_phy_qmp_14nm"
#define UFS_PHY_NAME "ufs_phy_qmp_14nm"
#define UFS_PHY_VDDA_PHY_UV	(925000)


static
static
int ufs_qcom_phy_qmp_14nm_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy,
int ufs_qcom_phy_qmp_14nm_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy,
@@ -94,8 +93,6 @@ static int ufs_qcom_phy_qmp_14nm_init(struct phy *generic_phy)
			__func__, err);
			__func__, err);
		goto out;
		goto out;
	}
	}
	phy_common->vdda_phy.max_uV = UFS_PHY_VDDA_PHY_UV;
	phy_common->vdda_phy.min_uV = UFS_PHY_VDDA_PHY_UV;


	ufs_qcom_phy_qmp_14nm_advertise_quirks(phy_common);
	ufs_qcom_phy_qmp_14nm_advertise_quirks(phy_common);


+5 −1
Original line number Original line Diff line number Diff line
@@ -230,6 +230,7 @@ ufs_qcom_phy_init_vregulators(struct phy *generic_phy,
			      struct ufs_qcom_phy *phy_common)
			      struct ufs_qcom_phy *phy_common)
{
{
	int err;
	int err;
	int vdda_phy_uV;


	err = ufs_qcom_phy_init_vreg(generic_phy, &phy_common->vdda_pll,
	err = ufs_qcom_phy_init_vreg(generic_phy, &phy_common->vdda_pll,
		"vdda-pll");
		"vdda-pll");
@@ -238,10 +239,13 @@ ufs_qcom_phy_init_vregulators(struct phy *generic_phy,


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

	if (err)
	if (err)
		goto out;
		goto out;


	vdda_phy_uV = regulator_get_voltage(phy_common->vdda_phy.reg);
	phy_common->vdda_phy.max_uV = vdda_phy_uV;
	phy_common->vdda_phy.min_uV = vdda_phy_uV;

	/* vddp-ref-clk-* properties are optional */
	/* vddp-ref-clk-* properties are optional */
	__ufs_qcom_phy_init_vreg(generic_phy, &phy_common->vddp_ref_clk,
	__ufs_qcom_phy_init_vreg(generic_phy, &phy_common->vddp_ref_clk,
				 "vddp-ref-clk", true);
				 "vddp-ref-clk", true);