summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-07-19 19:34:57 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-08-23 15:15:04 -0700
commit148368581e3cda33eefdba4630203a5ec3886cfd (patch)
tree237a113d8d853a277de3c97cd42ef80cfdbd9f1f /include
parent4766e6264368f13f74a6b5a6f3480442efe928bb (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 */