summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2016-10-26 08:12:30 (GMT)
committerSimon Glass <sjg@chromium.org>2016-11-25 17:00:04 (GMT)
commit2f5d532f3b8a7697dc1b5700000b1e350323d50c (patch)
tree07e3089822b28a37bf0f0264c273094763d778cb /include/power
parent543bd27353d2c5679057fe09aa2d02259687ff32 (diff)
downloadu-boot-2f5d532f3b8a7697dc1b5700000b1e350323d50c.tar.xz
power: regulator: Introduce regulator_set_value_force function
In case we want to force a particular value on a regulator irrespective of the min/max constraints for testing purposes one can call regulator_set_value_force function. Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/regulator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/power/regulator.h b/include/power/regulator.h
index f47ab67..1a8e575 100644
--- a/include/power/regulator.h
+++ b/include/power/regulator.h
@@ -261,6 +261,16 @@ int regulator_get_value(struct udevice *dev);
int regulator_set_value(struct udevice *dev, int uV);
/**
+ * regulator_set_value_force: set the microvoltage value of a given regulator
+ * without any min-,max condition check
+ *
+ * @dev - pointer to the regulator device
+ * @uV - the output value to set [micro Volts]
+ * @return - 0 on success or -errno val if fails
+ */
+int regulator_set_value_force(struct udevice *dev, int uV);
+
+/**
* regulator_get_current: get microampere value of a given regulator
*
* @dev - pointer to the regulator device