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

Commit e434a84a authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Guru Das Srinagesh
Browse files

power: smb5: enable software ICL adjustment for thermal regulation



Disable hardware thermal regulation and enable software ICL adjustment
for software controlled thermal regulation.

Change-Id: I3f0bbdf1567b41fa5efefb49e43cfa7c76dbb369
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 79f63ac1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2334,7 +2334,8 @@ static int smb5_init_hw(struct smb5 *chip)
	 */
	if (chg->wa_flags & SW_THERM_REGULATION_WA) {
		rc = smblib_write(chg, MISC_THERMREG_SRC_CFG_REG,
					THERMREG_DIE_CMP_SRC_EN_BIT);
					THERMREG_SW_ICL_ADJUST_BIT
					| THERMREG_DIE_CMP_SRC_EN_BIT);
		if (rc < 0) {
			dev_err(chg->dev, "Couldn't disable HW thermal regulation rc=%d\n",
				rc);