]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: qcom_spmi: Add slewing delays for all SMPS types
authorStephen Boyd <stephen.boyd@linaro.org>
Thu, 31 Mar 2016 01:57:49 +0000 (18:57 -0700)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Thu, 31 Mar 2016 12:06:51 +0000 (14:06 +0200)
commit667ba3d6b84314c39e9255c59384153ae97b82c0
treeeb3aee8e0e4b8fe90c82ebc6d33d7f3a386e6c74
parent6df44e6c1ccbb0f109a36db0f53b150e42fd4e4e
regulator: qcom_spmi: Add slewing delays for all SMPS types

Only the FT SMPS type regulators have slewing supported in the
driver, but all types of SMPS regulators need the same support.
The only difference is that some SMPS regulators don't have a
step size and the step delay is typically 20, not 8. Luckily, the
step size reads as 0 for the non-FT types, so we can always read
that, but we need to detect which type of regulator we're using
to figure out what step delay to use. Make these minor
adjustments to the slew rate calculations and add support for the
delay function to the appropriate regulator ops.

Reported-by: Georgi Djakov <georgi.djakov@linaro.org>
Cc: David Collins <collinsd@codeaurora.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
drivers/regulator/qcom_spmi-regulator.c