qpnp-smb2: allow parallel charging during supplemental mode
PMI8998 register 0x1690 BIT(2) is incorrectly documented. This bit enables a feature to disable the parallel charger via STAT when the PMI is supplementing a system load using the battery. This feature is not recommended since SW is limiting the power that the parallel charger can draw based on the input power available, and the default power distribution ensures that 50% of the available input power is allocated to the PMI. Disable this feature. Change-Id: I1e5400eb64b6b61076617b5b26fc750c6e8d0270 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
This commit is contained in:
parent
8931ef2e5c
commit
e57352646f
1 changed files with 4 additions and 5 deletions
|
@ -1199,13 +1199,12 @@ static int smb2_init_hw(struct smb2 *chip)
|
|||
return rc;
|
||||
}
|
||||
|
||||
/* configure PMI stat output to enable and disable parallel charging */
|
||||
/* disable SW STAT override */
|
||||
rc = smblib_masked_write(chg, STAT_CFG_REG,
|
||||
STAT_PARALLEL_CFG_BIT | STAT_SW_OVERRIDE_CFG_BIT,
|
||||
STAT_PARALLEL_CFG_BIT);
|
||||
STAT_SW_OVERRIDE_CFG_BIT, 0);
|
||||
if (rc < 0) {
|
||||
dev_err(chg->dev,
|
||||
"Couldn't configure signal for parallel rc=%d\n", rc);
|
||||
dev_err(chg->dev, "Couldn't disable SW STAT override rc=%d\n",
|
||||
rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue