Loading drivers/power/supply/qcom/qpnp-smb5.c 100644 → 100755 +9 −0 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading drivers/power/supply/qcom/step-chg-jeita.c +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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) { { Loading Loading
drivers/power/supply/qcom/qpnp-smb5.c 100644 → 100755 +9 −0 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading
drivers/power/supply/qcom/step-chg-jeita.c +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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) { { Loading