regulator: lochnagar: Add on_off_delay for VDDCORE
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 1 Oct 2019 13:20:17 +0000 (14:20 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 1 Oct 2019 16:46:01 +0000 (17:46 +0100)
The VDDCORE regulator takes a good length of time to discharge down, so
add an on_off_delay to ensure DCVDD is removed before it is powered on
again.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20191001132017.1785-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lochnagar-regulator.c

index ff97cc5..9b05e03 100644 (file)
@@ -210,6 +210,7 @@ static const struct regulator_desc lochnagar_regulators[] = {
 
                .enable_time = 3000,
                .ramp_delay = 1000,
+               .off_on_delay = 15000,
 
                .owner = THIS_MODULE,
        },