diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-06-27 15:53:12 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:12 -0800 |
commit | a553bef5c7cd54a688d6ba8f2688e9e16f91f3db (patch) | |
tree | 793bf74257e1986adcba1be209970027e4ef0141 /include/linux/regulator | |
parent | 194712736d53bf751f471e4e2b96776395e5c89a (diff) |
regulator: tps80031: Add VBUS as regulator
Providing the control of VBUS through regulator api.
bug 833736
Original-Change-Id: Id79f64dfb0ab30a5f0663521defb60a76681c767
Reviewed-on: http://git-master/r/38499
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Rebase-Id: R218327eaf38a09215ca2fe4f6e7e90c8e961d21f
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/tps80031-regulator.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/regulator/tps80031-regulator.h b/include/linux/regulator/tps80031-regulator.h index 6e030ce01697..86bbadba8df5 100644 --- a/include/linux/regulator/tps80031-regulator.h +++ b/include/linux/regulator/tps80031-regulator.h @@ -26,6 +26,19 @@ #include <linux/regulator/machine.h> +enum { + /* USBLDO input selection */ + USBLDO_INPUT_VSYS = 0x00000001, + USBLDO_INPUT_PMID = 0x00000002, + + /* LDO3 output mode */ + LDO3_OUTPUT_VIB = 0x00000004, + + /* VBUS configuration */ + VBUS_SW_ONLY = 0x00000008, + VBUS_SW_N_ID = 0x00000010, +}; + /* * struct tps80031_regulator_platform_data - tps80031 regulator platform data. * @@ -33,6 +46,8 @@ * @init_uV: initial micro volts which need to be set. * @init_enable: Enable or do not enable the rails during initialization. * @init_apply: Init parameter applied or not. + * @flags: Configuration flag to configure the rails. It should be ORed of + * above enums. */ struct tps80031_regulator_platform_data { @@ -40,6 +55,7 @@ struct tps80031_regulator_platform_data { int init_uV; unsigned init_enable:1; unsigned init_apply:1; + unsigned int flags; }; #endif /* __REGULATOR_TPS80031_H */ |