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

Commit 5eb6963e authored by jessicatseng's avatar jessicatseng Committed by jessicatseng(45616)
Browse files

To fix phone can not charge fully

Change-Id: I5cf21af81ca3ceb84e56cb5c9c2c6f39bfae10b1
parent 8a9834c3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2075,6 +2075,15 @@ static int smb5_init_hw(struct smb5 *chip)
		}
	}

//<2020/05/07-JessicaTseng, Enable AICL rerun periodically
	/* AICL PERIODIC RERUN ENABLE*/
	rc = smblib_write(chg, USBIN_AICL_OPTIONS_CFG_REG, 0xD4);
	if (rc < 0) {
			dev_err(chg->dev, "Couldn't config RERUN AICL ENABLE rc=%d\n", rc);
			return rc;
	}
//>2020/05/07-JessicaTseng

	/* enable the charging path */
	rc = vote(chg->chg_disable_votable, DEFAULT_VOTER, false, 0);
	if (rc < 0) {
+3 −1
Original line number Diff line number Diff line
@@ -502,10 +502,12 @@ static int handle_step_chg_config(struct step_chg_info *chip)
	return (STEP_CHG_HYSTERISIS_DELAY_US - elapsed_us + 1000);
}

#define JEITA_SUSPEND_HYST_UV		50000
//<2020/05/07-JessicaTseng, Modify recharging voltage from 4.05V to 3.9V at battery temperature over 45 degree
#define JEITA_SUSPEND_HYST_UV		200000//50000
//<2020/04/28-JessicaTseng, Setting jeita fv re-charge voltage for warm temp
#define JEITA_RECHG_HYST_UV		200000//100000
//>2020/04/28-JessicaTseng
//>2020/05/07-JessicaTseng

static int handle_jeita(struct step_chg_info *chip)
{