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

Commit d5098d6b authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: add support to configure Rconn



On some platforms, battery connector resistance (Rconn) needs to
be taken into account when Rslow (capacitive reactance) values
are used from battery profile. Without this, battery resistance
observed by FG algorithm will be wrong ending up in wrong SOC
estimate. When Rconn is specified, Rslow values for charge and
discharge will be updated. Add support to configure Rconn through
a device tree parameter "qcom,fg-rconn-mohms".

While at it, fix a bug in reading rs_to_rslow_chg from a wrong
offset 0 instead of 2.

CRs-Fixed: 980218
Change-Id: Ibd93e5013197a91098e3936b1b13f1193789215c
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 683a5c23
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