summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65217.c
diff options
context:
space:
mode:
authorMilo Kim <woogyom.kim@gmail.com>2016-11-15 22:02:15 +0900
committerLee Jones <lee.jones@linaro.org>2016-11-29 08:21:40 +0000
commit93559191e71bc0f862638b0a9644d4592452a5db (patch)
treecc8859e8cd32bd7e7e515847229fe12863287319 /drivers/mfd/tps65217.c
parentfa9170522b362aefb4fef58b5cbff45dbefec258 (diff)
downloadop-kernel-dev-93559191e71bc0f862638b0a9644d4592452a5db.zip
op-kernel-dev-93559191e71bc0f862638b0a9644d4592452a5db.tar.gz
mfd: tps65217: Support an interrupt pin as the system wakeup
TPS65217 INT pin is used for the system wakeup from suspend mode. This patch enables push button or charger input event as a wakeup source. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/tps65217.c')
-rw-r--r--drivers/mfd/tps65217.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
index 7376090..f769c7d 100644
--- a/drivers/mfd/tps65217.c
+++ b/drivers/mfd/tps65217.c
@@ -183,6 +183,8 @@ static int tps65217_irq_init(struct tps65217 *tps, int irq)
return ret;
}
+ enable_irq_wake(irq);
+
return 0;
}
OpenPOWER on IntegriCloud