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

Commit 734d1dd4 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: Support configure skew in capacity learning algorithm



Capacity learning algorithm takes in a parameter to configure
skew if when specified by the user to offset the errors that
can be accumulated based on the charging nature. Add a device
tree parameter "qcom,cl-skew" to configure it.

CRs-Fixed: 2380759
Change-Id: Ib50b175a6079261627e4038811980329e3c66668
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 074e4ba1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4727,6 +4727,8 @@ static int fg_gen4_parse_dt(struct fg_gen4_chip *chip)
	else
		chip->cl->dt.max_cap_limit = temp;

	of_property_read_u32(node, "qcom,cl-skew", &chip->cl->dt.skew_decipct);

	fg_gen4_parse_batt_temp_dt(chip);

	chip->dt.hold_soc_while_full = of_property_read_bool(node,