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

Skip to content
Commit 041149db authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: add support to show high resolution of MSOC



Currently CAPACITY_RAW property shows the monotonic SOC read
from FG_BATT_SOC peripheral which is in the scale of 0-255. For
showing a higher resolution of monotonic SOC to the user, obtain
it from FG SRAM which is in the scale of 0-65535 and show it in
centi-percentage when "qcom,soc-hi-res" property is specified.
When the charger is removed, show CAPACITY_RAW simply as
CAPACITY multiplied by 100.

Change-Id: I01b81be1d0ad9020bb6f5d33afe1401dde289a12
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent f91711ab
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