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

Commit d0f3c253 authored by Kiran Gunda's avatar Kiran Gunda Committed by Gerrit - the friendly Code Review server
Browse files

power: smb5: Add DT property to disable SW based thermal-regulation



Software based thermal mitigation is enabled for platforms with
incorrect ADC channel mapping.
Add "qcom,disable-sw-thermal-regulation" DT property to disable
this feature.

Change-Id: If384fbc5f394f03c6b0d84e5fc7aebce4a844059
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent ba3a7712
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -378,6 +378,10 @@ static int smb5_chg_config_init(struct smb5 *chip)
	chg->chg_freq.freq_below_otg_threshold	= 800;
	chg->chg_freq.freq_above_otg_threshold	= 800;

	if (of_property_read_bool(chip->chg.dev->of_node,
				      "qcom,disable-sw-thermal-regulation"))
		chg->wa_flags &= ~SW_THERM_REGULATION_WA;

out:
	of_node_put(revid_dev_node);
	return rc;