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

Commit 74ee3277 authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-smbcharger: account for battery OCP for flash prediction



In the flash current prediction algorithm, the battery pack OCP
threshold was not accounted for. Use the instantaneous vbat value and
max value from the fg_adc peripheral in order to make sure the maximum
flash current reported to the flash driver is below the amount necessary
to trip OCP.

CRs-Fixed: 793302
Change-Id: I60ad0371ff530148d2d2fb9e4966767736de85e7
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 2411250d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment