Commit 4635f73b authored by Matti Vaittinen's avatar Matti Vaittinen Committed by Angus Ainslie (Purism)

regulator: bd718x7: Go to SNVS instead of READY

If crucial-to-boot regulators are not controlled by SW
we can utilize SNVS state as a state followed by reset.
So let's go back relying on defaults for poweroff state
transitions. Eg - if HW default is used (boot does not
change states) we go to SNVS after all other resets except
the watchdog reset.
Signed-off-by: default avatarMatti Vaittinen <>
parent f81eace3
......@@ -1055,29 +1055,6 @@ static int bd718xx_probe(struct platform_device *pdev)
/* At poweroff transition PMIC HW disables EN bit for regulators but
* leaves SEL bit untouched. So if state transition from POWEROFF
* is done to SNVS - then all power rails controlled by SW (having
* SEL bit set) stay disabled as EN is cleared. This may result boot
* failure if any crucial systems are powered by these rails.
* Change the next stage from poweroff to be READY instead of SNVS
* for all reset types because OTP loading at READY will clear SEL
* bit allowing HW defaults for power rails to be used
err = regmap_update_bits(mfd->regmap, BD718XX_REG_TRANS_COND1,
if (err) {
dev_err(&pdev->dev, "Failed to change reset target\n");
goto err;
} else {
dev_dbg(&pdev->dev, "Changed all resets from SVNS to READY\n");
for (i = 0; i < pmic_regulators[mfd->chip_type].r_amount; i++) {
const struct regulator_desc *desc;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment