diff options
| author | Bill Huang <bilhuang@nvidia.com> | 2012-08-19 21:07:56 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-14 03:52:14 -0400 |
| commit | b079fa72069ba7f754ba8bdf737335abdb971b67 (patch) | |
| tree | 475ae5a57cddff10d9a3905390ba80a38301250a /include | |
| parent | 004c15a68076f5bdc343bed92efed81087cecbfb (diff) | |
mfd: dt: tps65910: Add power off control
Add DT property "ti,system-power-controller" telling whether or not this
pmic is in charge of controlling the system power, so the power off
routine can be hooked up to system call "pm_power_off".
Based on the work by:
Dan Willemsen <dwillemsen@nvidia.com>
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mfd/tps65910.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h index 9bf8767818b4..ac772b36a1b1 100644 --- a/include/linux/mfd/tps65910.h +++ b/include/linux/mfd/tps65910.h | |||
| @@ -366,6 +366,8 @@ | |||
| 366 | 366 | ||
| 367 | 367 | ||
| 368 | /*Register DEVCTRL (0x80) register.RegisterDescription */ | 368 | /*Register DEVCTRL (0x80) register.RegisterDescription */ |
| 369 | #define DEVCTRL_PWR_OFF_MASK 0x80 | ||
| 370 | #define DEVCTRL_PWR_OFF_SHIFT 7 | ||
| 369 | #define DEVCTRL_RTC_PWDN_MASK 0x40 | 371 | #define DEVCTRL_RTC_PWDN_MASK 0x40 |
| 370 | #define DEVCTRL_RTC_PWDN_SHIFT 6 | 372 | #define DEVCTRL_RTC_PWDN_SHIFT 6 |
| 371 | #define DEVCTRL_CK32K_CTRL_MASK 0x20 | 373 | #define DEVCTRL_CK32K_CTRL_MASK 0x20 |
| @@ -809,6 +811,7 @@ struct tps65910_board { | |||
| 809 | int vmbch2_threshold; | 811 | int vmbch2_threshold; |
| 810 | bool en_ck32k_xtal; | 812 | bool en_ck32k_xtal; |
| 811 | bool en_dev_slp; | 813 | bool en_dev_slp; |
| 814 | bool pm_off; | ||
| 812 | struct tps65910_sleep_keepon_data *slp_keepon; | 815 | struct tps65910_sleep_keepon_data *slp_keepon; |
| 813 | bool en_gpio_sleep[TPS6591X_MAX_NUM_GPIO]; | 816 | bool en_gpio_sleep[TPS6591X_MAX_NUM_GPIO]; |
| 814 | unsigned long regulator_ext_sleep_control[TPS65910_NUM_REGS]; | 817 | unsigned long regulator_ext_sleep_control[TPS65910_NUM_REGS]; |
