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

Commit d786a80e authored by jessicatseng(45616)'s avatar jessicatseng(45616) Committed by Gerrit Code Review
Browse files

Merge "To fix phone can not charge fully" into 8901-fp3-q-vanilla

parents 88ed7dbd 5eb6963e
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line 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 */
	/* enable the charging path */
	rc = vote(chg->chg_disable_votable, DEFAULT_VOTER, false, 0);
	rc = vote(chg->chg_disable_votable, DEFAULT_VOTER, false, 0);
	if (rc < 0) {
	if (rc < 0) {
+3 −1
Original line number Original line 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);
	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
//<2020/04/28-JessicaTseng, Setting jeita fv re-charge voltage for warm temp
#define JEITA_RECHG_HYST_UV		200000//100000
#define JEITA_RECHG_HYST_UV		200000//100000
//>2020/04/28-JessicaTseng
//>2020/04/28-JessicaTseng
//>2020/05/07-JessicaTseng


static int handle_jeita(struct step_chg_info *chip)
static int handle_jeita(struct step_chg_info *chip)
{
{