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:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment