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

Commit d9ac20b3 authored by Kiran Gunda's avatar Kiran Gunda
Browse files

power: smb1398: Update the max-ilim current settings



Update the max current limit configuration as per the
hardware capability.

	- max-lim for master only config - 5A
	- max-ilim for master and slave config - 10A

While at it, update the min-ilim setting to 750mA as per
the hardware recommendation.

Change-Id: I08793aafd0b416a597c3b51afff4ef624129f731
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent 50fddb39
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -202,9 +202,8 @@
#define TAPER_MAIN_ICL_LIMIT_VOTER	"TAPER_MAIN_ICL_LIMIT_VOTER"

/* Constant definitions */
/* Need to define max ILIM for smb1398 */
#define DIV2_MAX_ILIM_UA		3200000
#define DIV2_MAX_ILIM_DUAL_CP_UA	6400000
#define DIV2_MAX_ILIM_UA		5000000
#define DIV2_MAX_ILIM_DUAL_CP_UA	10000000
#define DIV2_ILIM_CFG_PCT		105

#define TAPER_STEPPER_UA_DEFAULT	100000
@@ -1902,7 +1901,7 @@ static int smb1398_div2_cp_parse_dt(struct smb1398_chip *chip)
		return rc;
	}

	chip->div2_cp_min_ilim_ua = 1000000;
	chip->div2_cp_min_ilim_ua = 750000;
	of_property_read_u32(chip->dev->of_node, "qcom,div2-cp-min-ilim-ua",
			&chip->div2_cp_min_ilim_ua);