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

Commit 7c269f67 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb5-lib: Fix USBIN Under-Voltage Lock-out issue"

parents fe5d837a af21981a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1562,6 +1562,13 @@ static int smb5_configure_typec(struct smb_charger *chg)
		return rc;
	}

	rc = smblib_masked_write(chg, USBIN_LOAD_CFG_REG,
		USBIN_IN_COLLAPSE_GF_SEL_MASK | USBIN_AICL_STEP_TIMING_SEL_MASK,
		0);
	if (rc < 0)
		dev_err(chg->dev,
			"Couldn't set USBIN_LOAD_CFG_REG rc=%d\n", rc);

	return rc;
}

+2 −0
Original line number Diff line number Diff line
@@ -258,6 +258,8 @@ enum {

#define USBIN_LOAD_CFG_REG			(USBIN_BASE + 0x65)
#define ICL_OVERRIDE_AFTER_APSD_BIT		BIT(4)
#define USBIN_AICL_STEP_TIMING_SEL_MASK		GENMASK(3, 2)
#define USBIN_IN_COLLAPSE_GF_SEL_MASK		GENMASK(1, 0)

#define USBIN_ICL_OPTIONS_REG			(USBIN_BASE + 0x66)
#define CFG_USB3P0_SEL_BIT			BIT(2)