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

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

Merge "power: qpnp-fg: turn on current termination qualification"

parents fc78ac7f 760c7eda
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2576,6 +2576,7 @@ static int soc_to_setpoint(int soc)
#define DELTA_SOC_PERCENT	1
#define THERMAL_COEFF_ADDR	0x444
#define THERMAL_COEFF_OFFSET	0x2
#define I_TERM_QUAL_BIT		BIT(1)
static int fg_hw_init(struct fg_chip *chip)
{
	u8 resume_soc;
@@ -2627,6 +2628,9 @@ static int fg_hw_init(struct fg_chip *chip)
			THERMAL_COEFF_OFFSET, 0);
	}

	fg_mem_masked_write(chip, FG_ALG_SYSCTL_1, I_TERM_QUAL_BIT,
			I_TERM_QUAL_BIT, 0);

	return 0;
}