mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "power: smb1398: Do not disable FP_FET during IREV condition"
This commit is contained in:
commit
a9c39c41e9
1 changed files with 9 additions and 0 deletions
|
|
@ -92,6 +92,7 @@
|
|||
#define MISC_CFG0_REG 0x2634
|
||||
#define DIS_SYNC_DRV_BIT BIT(5)
|
||||
#define SW_EN_SWITCHER_BIT BIT(3)
|
||||
#define CFG_DIS_FPF_IREV_BIT BIT(1)
|
||||
|
||||
#define MISC_CFG1_REG 0x2635
|
||||
#define MISC_CFG1_MASK GENMASK(7, 0)
|
||||
|
|
@ -1993,6 +1994,14 @@ static int smb1398_div2_cp_hw_init(struct smb1398_chip *chip)
|
|||
return rc;
|
||||
}
|
||||
|
||||
/* Do not disable FP_FET during IREV conditions */
|
||||
rc = smb1398_masked_write(chip, MISC_CFG0_REG, CFG_DIS_FPF_IREV_BIT, 0);
|
||||
if (rc < 0) {
|
||||
dev_err(chip->dev, "Couldn't set CFG_DIS_FPF_IREV_BIT, rc=%d\n",
|
||||
rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* switcher enable controlled by register */
|
||||
rc = smb1398_masked_write(chip, MISC_CFG0_REG,
|
||||
SW_EN_SWITCHER_BIT, SW_EN_SWITCHER_BIT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue