Loading drivers/power/supply/qcom/qpnp-smb2.c +12 −0 Original line number Diff line number Diff line Loading @@ -1664,6 +1664,18 @@ static int smb2_init_hw(struct smb2 *chip) return rc; } /* * allow DRP.DFP time to exceed by tPDdebounce time. */ rc = smblib_masked_write(chg, TAPER_TIMER_SEL_CFG_REG, TYPEC_DRP_DFP_TIME_CFG_BIT, TYPEC_DRP_DFP_TIME_CFG_BIT); if (rc < 0) { dev_err(chg->dev, "Couldn't configure DRP.DFP time rc=%d\n", rc); return rc; } /* configure float charger options */ switch (chip->dt.float_option) { case 1: Loading drivers/power/supply/qcom/smb-reg.h +1 −0 Original line number Diff line number Diff line Loading @@ -624,6 +624,7 @@ enum { #define TAPER_TIMER_SEL_CFG_REG (USBIN_BASE + 0x64) #define TYPEC_SPARE_CFG_BIT BIT(7) #define TYPEC_DRP_DFP_TIME_CFG_BIT BIT(5) #define TAPER_TIMER_SEL_MASK GENMASK(1, 0) #define USBIN_LOAD_CFG_REG (USBIN_BASE + 0x65) Loading Loading
drivers/power/supply/qcom/qpnp-smb2.c +12 −0 Original line number Diff line number Diff line Loading @@ -1664,6 +1664,18 @@ static int smb2_init_hw(struct smb2 *chip) return rc; } /* * allow DRP.DFP time to exceed by tPDdebounce time. */ rc = smblib_masked_write(chg, TAPER_TIMER_SEL_CFG_REG, TYPEC_DRP_DFP_TIME_CFG_BIT, TYPEC_DRP_DFP_TIME_CFG_BIT); if (rc < 0) { dev_err(chg->dev, "Couldn't configure DRP.DFP time rc=%d\n", rc); return rc; } /* configure float charger options */ switch (chip->dt.float_option) { case 1: Loading
drivers/power/supply/qcom/smb-reg.h +1 −0 Original line number Diff line number Diff line Loading @@ -624,6 +624,7 @@ enum { #define TAPER_TIMER_SEL_CFG_REG (USBIN_BASE + 0x64) #define TYPEC_SPARE_CFG_BIT BIT(7) #define TYPEC_DRP_DFP_TIME_CFG_BIT BIT(5) #define TAPER_TIMER_SEL_MASK GENMASK(1, 0) #define USBIN_LOAD_CFG_REG (USBIN_BASE + 0x65) Loading