summaryrefslogtreecommitdiff
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-10-19 13:48:34 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:44 -0800
commit61fc54aed862e0502b618ce8b81a07f4ae76f6a6 (patch)
tree3feb4c763cd37624c6189bdfd176c5dd6caab07f /include/linux/regulator
parente2d4c6ec61841cd84552919ee54f77e2f3287bad (diff)
regulator: tps6591x: Support to put LDO in low power in suspend
Adding the configuration flag to put the ldos in the low power mode when it is suspended. The option can be provided through platform data. bug 890770 Reviewed-on: http://git-master/r/60408 (cherry picked from commit e317af259582d04c4eba2feabb757eb05d174002) Change-Id: I65ee0ef9ae963cf3d9f73ed9c5bb7c7fa4af77c8 Reviewed-on: http://git-master/r/61435 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: R869a6c46008af761bc3eec1a3fbb50681786b7de
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/tps6591x-regulator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/regulator/tps6591x-regulator.h b/include/linux/regulator/tps6591x-regulator.h
index 2f3566d3497b..7f7f647906d0 100644
--- a/include/linux/regulator/tps6591x-regulator.h
+++ b/include/linux/regulator/tps6591x-regulator.h
@@ -50,6 +50,10 @@ enum tps6591x_ext_control {
EXT_CTRL_SLEEP_OFF,
};
+enum tps6591x_config_flags {
+ LDO_LOW_POWER_ON_SUSPEND = 0x1,
+};
+
/*
* struct tps6591x_regulator_platform_data - tps6591x regulator platform data.
*
@@ -67,6 +71,7 @@ struct tps6591x_regulator_platform_data {
unsigned init_apply:1;
enum tps6591x_ext_control ectrl;
int slew_rate_uV_per_us;
+ unsigned int flags;
};
#endif /* __REGULATOR_TPS6591X_H */