summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPrashant Gaikwad <pgaikwad@nvidia.com>2011-03-10 16:23:37 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-03-10 21:42:10 -0800
commit8bb77ffa20e159e611ac3c629cce6fdc3db26f00 (patch)
tree0b933d4997f5d38b1ce2217eb72ad9c1bd4c0a71 /include
parenta8dbfda58a6980976de60ba46f22a5f0b2ecab5f (diff)
mfd: max8907c: Add api to power off max8907c
Add an api to power off max8907c by setting power off bit in RESET_CNFG reg. Bug 799957 Bug 800602 (Cold boot) Change-Id: Ie0206d684a86fecc75273c1d3b087bb2d47b4c56 Reviewed-on: http://git-master/r/22385 Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/max8907c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/max8907c.h b/include/linux/mfd/max8907c.h
index d77ac500da29..4f51b3d4c58f 100644
--- a/include/linux/mfd/max8907c.h
+++ b/include/linux/mfd/max8907c.h
@@ -162,6 +162,9 @@
#define MAX8907C_MASK_OUT5V_ENSRC 0x0E
#define MAX8907C_MASK_OUT5V_EN 0x01
+/* Power off bit in RESET_CNFG reg */
+#define MAX8907C_MASK_POWER_OFF 0x40
+
#define RTC_I2C_ADDR 0x68
/* IRQ definitions */
@@ -223,4 +226,5 @@ int max8907c_irq_init(struct max8907c *chip, int irq, int irq_base);
void max8907c_irq_free(struct max8907c *chip);
int max8907c_suspend(struct i2c_client *i2c, pm_message_t state);
int max8907c_resume(struct i2c_client *i2c);
+int max8907c_power_off(void);
#endif