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: Phani Kumar Uppalapati <phaniu@codeaurora.org>
This commit is contained in:
Phani Kumar Uppalapati 2015-08-19 15:30:30 -07:00 committed by Gerrit - the friendly Code Review server
parent 166061b18b
commit d636ebbd41

View file

@ -662,10 +662,13 @@ static enum codec_variant codec_ver;
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);
snd_soc_update_bits(codec, WCD9335_CHIP_TIER_CTRL_EFUSE_CTL,
0x1E, 0x02);
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,
0x01, 0x01);
/*