summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-07-19 19:34:57 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-08-23 14:40:50 -0700
commit06ba2793ecdeaf22ab34e838d26a92cab552c998 (patch)
tree41045a59f055254a8e05f161c48f764ac152852c /include
parenta2af046e9a5cde22bae5bf515f2518a762db5730 (diff)
regulator: tps80031: Support for delay configuration
Adding support for delay configuration after setting the voltage from platform data based on board behavior. Also providing flag to enable the VBUS discharging though internal pull down. bug 853393 Change-Id: I27e7ae1eab9893241e775e17ec7b98afac71195b Reviewed-on: http://git-master/r/41886 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/regulator/tps80031-regulator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regulator/tps80031-regulator.h b/include/linux/regulator/tps80031-regulator.h
index ed0838a6c3bc..e76c4b895587 100644
--- a/include/linux/regulator/tps80031-regulator.h
+++ b/include/linux/regulator/tps80031-regulator.h
@@ -58,6 +58,7 @@ enum {
LDO3_OUTPUT_VIB = 0x00000004,
/* VBUS configuration */
+ VBUS_DISCHRG_EN_PDN = 0x00000004,
VBUS_SW_ONLY = 0x00000008,
VBUS_SW_N_ID = 0x00000010,
@@ -76,6 +77,7 @@ enum {
* @init_apply: Init parameter applied or not.
* @flags: Configuration flag to configure the rails. It should be ORed of
* above enums.
+ * @delay_us: Delay in microsecond after setting the desired voltage.
*/
struct tps80031_regulator_platform_data {
@@ -84,6 +86,7 @@ struct tps80031_regulator_platform_data {
unsigned init_enable:1;
unsigned init_apply:1;
unsigned int flags;
+ int delay_us;
};
#endif /* __REGULATOR_TPS80031_H */