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

Commit afd10dc3 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

power: smb5: Change default WLS FCC_MAIN vote to 800 mA



Since for VBATT designs, the main charger is allocated only 800 mA,
reflect that in the default vote of wireless charging.

Change-Id: Ic436905b0449ff511989eab63cfc519c37046b66
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 046c7ab8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6210,11 +6210,11 @@ irqreturn_t dc_plugin_irq_handler(int irq, void *data)
		if (chg->sec_cp_present) {
			/*
			 * If CP output topology is VBATT, limit main charger's
			 * FCC share to 1 A and let the CPs handle the rest.
			 * FCC share and let the CPs handle the rest.
			 */
			if (is_cp_topo_vbatt(chg))
				vote(chg->fcc_main_votable,
					WLS_PL_CHARGING_VOTER, true, 1000000);
					WLS_PL_CHARGING_VOTER, true, 800000);

			pval.intval = wireless_vout;
			rc = smblib_set_prop_voltage_wls_output(chg, &pval);