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

Commit f70d5428 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Xiaozhe Shi
Browse files

power: qpnp-fg: retrieve the cycle counter from FG SRAM when device boots



Cycle counter is stored in fuel gauge (FG) SRAM and it will be
updated based on the specified low and high SOC thresholds. When
the device restarts, cycle counter variable would get reset to
zero. However it should be updated with the real value stored in
FG SRAM as it will be retained until the battery is removed.

CRs-Fixed: 805418
Change-Id: Id348dac5b8cd861e964f3206c764efa2b32c3a1d
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 09efd825
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