summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-05-09 20:42:54 +0530
committerHarshada Kale <hkale@nvidia.com>2013-05-13 03:21:02 -0700
commitfeffc32237ad8c3e16d8b05de259d2a6d4a76fa8 (patch)
treedc11b061334a34d5d7e63e02783b0232ef6e9bc8 /include
parentdea4855fc823eb7ace850cfe0864f9cc041699d9 (diff)
regulator: palmas: add config flags to configure regulator behavior
Add the config variable on regulator init data to configure the rails behavior like force off on suspend etc. bug 1278567 Change-Id: I01f8f5729dfa67ba9f301d2f06825b152ef6857a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/227077 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/palmas.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h
index 5bad75cdb052..cce2e35d2db2 100644
--- a/include/linux/mfd/palmas.h
+++ b/include/linux/mfd/palmas.h
@@ -114,6 +114,8 @@ struct palmas_reg_init {
*/
u8 vsel;
+ /* Configuration flags */
+ unsigned int config_flags;
};
enum palmas_regulators {
@@ -310,6 +312,7 @@ struct palmas_pmic {
int range[PALMAS_REG_SMPS10];
unsigned long roof_floor[PALMAS_NUM_REGS];
+ unsigned long config_flags[PALMAS_NUM_REGS];
};
/* defines so we can store the mux settings */
@@ -2735,6 +2738,14 @@ enum {
PALMAS_EXT_CONTROL_NSLEEP = 0x4,
};
+/**
+ * Palmas regulator configs
+ * PALMAS_REGULATOR_CONFIG_SUSPEND_FORCE_OFF: Force off on suspend
+ */
+enum {
+ PALMAS_REGULATOR_CONFIG_SUSPEND_FORCE_OFF = 0x1,
+};
+
/*
*PALMAS GPIOs
*/