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

Commit c5f8cad5 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: enable CC_SOC_REG based capacity learning for pmi8996 v1.x



Currently, CC_SOC_REG based capacity learning is enabled only
for pmi8996 v2.0 and above. This is incorrect as it should be
enabled on v1.x chips as well. Fix it.

CRs-Fixed: 1034236
Change-Id: I0c0178b59eb1647013f3dcbda92dee5d608a5834
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 450bd44d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7859,7 +7859,7 @@ static int fg_hw_init(struct fg_chip *chip)
		/* Setup workaround flag based on PMIC type */
		if (fg_sense_type == INTERNAL_CURRENT_SENSE)
			chip->wa_flag |= IADC_GAIN_COMP_WA;
		if (chip->pmic_revision[REVID_DIG_MAJOR] > 1)
		if (chip->pmic_revision[REVID_DIG_MAJOR] >= 1)
			chip->wa_flag |= USE_CC_SOC_REG;

		break;