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

Commit a9a3e8b6 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: wcd9335: Update efuse sensing sequence for wcd9335



WCD9335 Codec version 2.0 has different efuse sequence
when compared to previous versions v1.0/v1.1. Update
the codec efuse programming sequence based on the version.

Change-Id: I830c3f4f33e246e06c7733d9518353518f8ee752
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 0c37cc25
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -612,8 +612,11 @@ struct tasha_priv {

int tasha_enable_efuse_sensing(struct snd_soc_codec *codec)
{
	struct tasha_priv *priv = snd_soc_codec_get_drvdata(codec);

	tasha_cdc_mclk_enable(codec, true, false);

	if (!TASHA_IS_2_0(priv->wcd9xxx->version))
		snd_soc_update_bits(codec, WCD9335_CHIP_TIER_CTRL_EFUSE_CTL,
				    0x1E, 0x02);
	snd_soc_update_bits(codec, WCD9335_CHIP_TIER_CTRL_EFUSE_CTL,