Loading drivers/power/supply/qcom/qpnp-smb5.c +7 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading drivers/power/supply/qcom/smb5-reg.h +2 −0 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
drivers/power/supply/qcom/qpnp-smb5.c +7 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading
drivers/power/supply/qcom/smb5-reg.h +2 −0 Original line number Diff line number Diff line Loading @@ -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) Loading