diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-09-18 16:51:19 -0600 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-19 12:07:56 +0200 |
commit | 9582fdcb6fcf1b596a83b161a2ea886272d2a62f (patch) | |
tree | d880190567065d64e86b29194a0ec0ca23cfb50b /include/linux/mfd | |
parent | 48a364b758f861b21747a5148f26aedc504edb7f (diff) | |
download | op-kernel-dev-9582fdcb6fcf1b596a83b161a2ea886272d2a62f.zip op-kernel-dev-9582fdcb6fcf1b596a83b161a2ea886272d2a62f.tar.gz |
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')
-rw-r--r-- | include/linux/mfd/max8907.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/max8907.h b/include/linux/mfd/max8907.h index 283531f..b06f7a6 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; |