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

Skip to content
Commit 546d84cd authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-bms: improve the range of shutdown iavg



In previous revisions of the BMS peripheral, there were only 4 bits
to store the average current at shutdown. However, in the new BMS,
there are dedicated registers to store this information.

Make use of it by increasing the range and resolution of the shutdown
IAVG to 250mA + 10mA * X where X is the stored value. This will allow
for more accurate unusable charge calculations at boot time.

Change-Id: Ied413899cd05a33754c63cdc46010c941d6f083f
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent cb167fec
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