summaryrefslogtreecommitdiff
path: root/include/linux/mfd/max8907.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-09-18 16:51:19 -0600
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-19 12:07:56 +0200
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 283531fde4e0..b06f7a6a1e80 100644
--- a/include/linux/mfd/max8907.h
+++ b/include/linux/mfd/max8907.h
@@ -167,6 +167,7 @@
#define MAX8907_MASK_OUT5V_VINEN 0x10
#define MAX8907_MASK_OUT5V_ENSRC 0x0E
#define MAX8907_MASK_OUT5V_EN 0x01
+#define MAX8907_MASK_POWER_OFF 0x40
/* Regulator IDs */
#define MAX8907_MBATT 0
@@ -231,6 +232,7 @@ enum {
struct max8907_platform_data {
struct regulator_init_data *init_data[MAX8907_NUM_REGULATORS];
+ bool pm_off;
};
struct regmap_irq_chips_data;