aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/max8907.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-09-18 18:51:19 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-19 06:07:56 -0400
commit9582fdcb6fcf1b596a83b161a2ea886272d2a62f (patch)
treed880190567065d64e86b29194a0ec0ca23cfb50b /include/linux/mfd/max8907.h
parent48a364b758f861b21747a5148f26aedc504edb7f (diff)
mfd: max8907: Add power off control
Add DT property "maxim,system-power-controller" to indicate whether the PMIC is in charge of controlling the system power. If this is set, the driver will provide the pm_power_off() function. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/max8907.h')
-rw-r--r--include/linux/mfd/max8907.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/max8907.h b/include/linux/mfd/max8907.h
index 283531fde4e..b06f7a6a1e8 100644
--- a/include/linux/mfd/max8907.h
+++ b/include/linux/mfd/max8907.h
@@ -167,6 +167,7 @@
167#define MAX8907_MASK_OUT5V_VINEN 0x10 167#define MAX8907_MASK_OUT5V_VINEN 0x10
168#define MAX8907_MASK_OUT5V_ENSRC 0x0E 168#define MAX8907_MASK_OUT5V_ENSRC 0x0E
169#define MAX8907_MASK_OUT5V_EN 0x01 169#define MAX8907_MASK_OUT5V_EN 0x01
170#define MAX8907_MASK_POWER_OFF 0x40
170 171
171/* Regulator IDs */ 172/* Regulator IDs */
172#define MAX8907_MBATT 0 173#define MAX8907_MBATT 0
@@ -231,6 +232,7 @@ enum {
231 232
232struct max8907_platform_data { 233struct max8907_platform_data {
233 struct regulator_init_data *init_data[MAX8907_NUM_REGULATORS]; 234 struct regulator_init_data *init_data[MAX8907_NUM_REGULATORS];
235 bool pm_off;
234}; 236};
235 237
236struct regmap_irq_chips_data; 238struct regmap_irq_chips_data;