regulator: bd718x7: Add enable times
authorGuido Günther <agx@sigxcpu.org>
Fri, 18 Dec 2020 18:38:07 +0000 (19:38 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 21 Dec 2020 18:57:28 +0000 (18:57 +0000)
commit3b66e4a8e58a85af3212c7117d7a29c9ef6679a2
tree95873ee1ca255dd6500a8dd1f6f6585853926c5f
parentdf9716ec9ade3d2e190a2aac199557d30a3a8416
regulator: bd718x7: Add enable times

Use the typical startup times from the data sheet so boards get a
reasonable default. Not setting any enable time can lead to board hangs
when e.g. clocks are enabled too soon afterwards.

This fixes gpu power domain resume on the Librem 5.

[Moved #defines into driver, seems to be general agreement and avoids any
cross tree issues -- broonie]

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/41fb2ed19f584f138336344e2297ae7301f72b75.1608316658.git.agx@sigxcpu.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd718x7-regulator.c