summaryrefslogtreecommitdiff
path: root/include/linux/mfd/tps65090.h
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2014-04-16 16:12:28 -0700
committerMark Brown <broonie@linaro.org>2014-04-18 16:02:00 +0100
commit290414499cf94284a97cc3c33214d13ccfcd896a (patch)
tree4be5c3dcf7dbc0b9e4a93241ef6d8aa8a7673c5f /include/linux/mfd/tps65090.h
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff)
regulator: tps65090: Allow setting the overcurrent wait time
The tps65090 regulator allows you to specify how long you want it to wait before detecting an overcurrent condition. Allow specifying that through the device tree (or through platform data). Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Michael Spang <spang@chromium.org> Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/mfd/tps65090.h')
-rw-r--r--include/linux/mfd/tps65090.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h
index 3f43069413e7..f25adfa97c73 100644
--- a/include/linux/mfd/tps65090.h
+++ b/include/linux/mfd/tps65090.h
@@ -78,11 +78,16 @@ struct tps65090 {
* DCDC1, DCDC2 and DCDC3.
* @gpio: Gpio number if external control is enabled and controlled through
* gpio.
+ * @overcurrent_wait_valid: True if the overcurrent_wait should be applied.
+ * @overcurrent_wait: Value to set as the overcurrent wait time. This is the
+ * actual bitfield value, not a time in ms (valid value are 0 - 3).
*/
struct tps65090_regulator_plat_data {
struct regulator_init_data *reg_init_data;
bool enable_ext_control;
int gpio;
+ bool overcurrent_wait_valid;
+ int overcurrent_wait;
};
struct tps65090_platform_data {