summaryrefslogtreecommitdiff
path: root/include/linux/regulator/tps80031-regulator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/regulator/tps80031-regulator.h')
-rw-r--r--include/linux/regulator/tps80031-regulator.h16
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 */