summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Cherry <tcherry@nvidia.com>2011-02-18 12:03:24 -0800
committerVarun Colbert <vcolbert@nvidia.com>2011-03-03 10:38:25 -0800
commit4c5b7132e5321f577041945c95990d52bacd3003 (patch)
treecdef0db7f6471f7702e4a4c44f642ca6ee5e3d15 /include
parent29c5018516f0ed614d886b42d0b74787d89147fc (diff)
max8907c mfd: Add wake irq capability
This change allows the max8907c to wake the system when receiving an irq. It also masks all non-wake conditions from causing an irq when going into suspend and unmasks these conditions when resuming to not cause spurious wake-up events. Change-Id: I5eadb929ff4aded8a6ec11426ab424f0f692c042 Reviewed-on: http://git-master/r/20100 Tested-by: Thomas Cherry <tcherry@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/max8907c.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/max8907c.h b/include/linux/mfd/max8907c.h
index d4d62d4a6421..d77ac500da29 100644
--- a/include/linux/mfd/max8907c.h
+++ b/include/linux/mfd/max8907c.h
@@ -200,6 +200,11 @@ struct max8907c {
struct i2c_client *i2c_rtc;
int irq_base;
int core_irq;
+
+ unsigned char cache_chg[2];
+ unsigned char cache_on[2];
+ unsigned char cache_rtc;
+
};
struct max8907c_platform_data {