summaryrefslogtreecommitdiffstats
path: root/include/power
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2019-03-06 19:37:54 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2019-03-11 15:53:19 +0900
commite66d1cb3c2344ee5bbf2059e75fa94350aea9f5f (patch)
tree4a66659f0998cacf6dacd77605773ab66d78c22d /include/power
parentfce86100606d14e53517a3601849646e69715465 (diff)
downloadu-boot-e66d1cb3c2344ee5bbf2059e75fa94350aea9f5f.tar.gz
u-boot-e66d1cb3c2344ee5bbf2059e75fa94350aea9f5f.tar.xz
u-boot-e66d1cb3c2344ee5bbf2059e75fa94350aea9f5f.zip
regulator: Add support for ramp delay
Changing voltage and enabling regulator might require delays so the regulator stabilizes at expected level. Add support for "regulator-ramp-delay" binding which can introduce required time to both enabling the regulator and to changing the voltage. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Tested-by: Anand Moon <linux.amoon@gmail.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/regulator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/power/regulator.h b/include/power/regulator.h
index 314160a894..6c6e2cd4f9 100644
--- a/include/power/regulator.h
+++ b/include/power/regulator.h
@@ -150,6 +150,7 @@ enum regulator_flag {
* @always_on* - bool type, true or false
* @boot_on* - bool type, true or false
* TODO(sjg@chromium.org): Consider putting the above two into @flags
+ * @ramp_delay - Time to settle down after voltage change (unit: uV/us)
* @flags: - flags value (see REGULATOR_FLAG_...)
* @name** - fdt regulator name - should be taken from the device tree
* ctrl_reg: - Control register offset used to enable/disable regulator
@@ -169,6 +170,7 @@ struct dm_regulator_uclass_platdata {
int max_uV;
int min_uA;
int max_uA;
+ unsigned int ramp_delay;
bool always_on;
bool boot_on;
const char *name;