aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/mt6397
diff options
context:
space:
mode:
authorHenry Chen <henryc.chen@mediatek.com>2015-08-10 21:10:45 +0800
committerLee Jones <lee.jones@linaro.org>2015-08-11 15:09:11 +0100
commitf3151ab4a7320ce3f48955fe796bd90dd00881ab (patch)
tree9360da8758a53b9975831988047648c316f7af4d /include/linux/mfd/mt6397
parentmfd: atmel-hlcdc: Add support for new SoCs (diff)
downloadlinux-dev-f3151ab4a7320ce3f48955fe796bd90dd00881ab.tar.xz
linux-dev-f3151ab4a7320ce3f48955fe796bd90dd00881ab.zip
mfd: mt6397: Implement wake handler and suspend/resume to handle wake up event
Implement .irq_set_wake() to get who is wakeup source and setup on suspend/reumse. Enable mt6393_irq as wake up source properly to pinctrl by enable_irq_wake()/enable_irq_wake(). Signed-off-by: Henry Chen <henryc.chen@mediatek.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/mt6397')
-rw-r--r--include/linux/mfd/mt6397/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/mt6397/core.h b/include/linux/mfd/mt6397/core.h
index cf5265b0d1c1..45b8e8aa1fbf 100644
--- a/include/linux/mfd/mt6397/core.h
+++ b/include/linux/mfd/mt6397/core.h
@@ -57,6 +57,7 @@ struct mt6397_chip {
int irq;
struct irq_domain *irq_domain;
struct mutex irqlock;
+ u16 wake_mask[2];
u16 irq_masks_cur[2];
u16 irq_masks_cache[2];
};