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

Commit 58bf6a0b authored by Wang Han's avatar Wang Han Committed by Bernhard Thoben
Browse files

qpnp-smbcharger: Extend USB fast charge playground



Allow fast charge up to 900mA, when the original param is smaller than 150mA.

Signed-off-by: default avatarWang Han <416810799@qq.com>
Signed-off-by: default avatarzachariasmaladroit <zacharias.maladroit@gmail.com>
parent 54cfe66f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1674,7 +1674,7 @@ static int smbchg_set_usb_current_max(struct smbchg_chip *chip,
			}
			chip->usb_max_current_ma = 500;
		}
		if (current_ma == CURRENT_900_MA) {
		if ((current_ma <= CURRENT_150_MA) || (current_ma == CURRENT_500_MA) || (current_ma == CURRENT_900_MA)) {	// AP: Fast charge for USB
			rc = smbchg_sec_masked_write(chip,
					chip->usb_chgpth_base + CHGPTH_CFG,
					CFG_USB_2_3_SEL_BIT, CFG_USB_3);