mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge "power: smb1398: Update win-uv threshold to 10mV"
This commit is contained in:
commit
903b8756f2
1 changed files with 16 additions and 0 deletions
|
|
@ -1945,6 +1945,14 @@ static int smb1398_div2_cp_hw_init(struct smb1398_chip *chip)
|
|||
return rc;
|
||||
}
|
||||
|
||||
/* Configure window (Vin/2 - Vout) UV level to 10mV */
|
||||
rc = smb1398_masked_write(chip, NOLOCK_SPARE_REG,
|
||||
DIV2_WIN_UV_SEL_BIT, 0);
|
||||
if (rc < 0) {
|
||||
dev_err(chip->dev, "Couldn't set WIN_UV_10_MV rc=%d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Configure master TEMP pin to output Vtemp signal by default */
|
||||
rc = smb1398_masked_write(chip, SSUPLY_TEMP_CTRL_REG,
|
||||
SEL_OUT_TEMP_MAX_MASK, SEL_OUT_VTEMP);
|
||||
|
|
@ -2270,6 +2278,14 @@ static int smb1398_div2_cp_slave_probe(struct smb1398_chip *chip)
|
|||
return rc;
|
||||
}
|
||||
|
||||
/* Configure window (Vin/2 - Vout) UV level to 10mV */
|
||||
rc = smb1398_masked_write(chip, NOLOCK_SPARE_REG,
|
||||
DIV2_WIN_UV_SEL_BIT, 0);
|
||||
if (rc < 0) {
|
||||
dev_err(chip->dev, "Couldn't set WIN_UV_10_MV rc=%d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
* Disable slave WIN_UV detection, otherwise slave might not be
|
||||
* enabled due to WIN_UV until master drawing very high current.
|
||||
|
|
|
|||
Loading…
Reference in a new issue