summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/ucb1x00.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-22 20:05:24 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-18 23:15:43 +0000
commit33237616771bfc29a97f17e74efe3799bb790343 (patch)
tree4ad660084434e190150dab67170d3b65cf2e8a3a /include/linux/mfd/ucb1x00.h
parenta3364409c4af8bae42d04def48dc11409787e503 (diff)
downloadblackbird-op-linux-33237616771bfc29a97f17e74efe3799bb790343.tar.gz
blackbird-op-linux-33237616771bfc29a97f17e74efe3799bb790343.zip
MFD: ucb1x00-core: add wakeup support
Add genirq wakeup support for the ucb1x00 device. This allows an attached gpio_keys driver to wakeup the system. Touchscreen is also possible. When there are no wakeup sources, ask the platform to assert the reset signal to avoid any unexpected behaviour; this also puts the reset signal at the right level when power is removed from the device. Acked-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/mfd/ucb1x00.h')
-rw-r--r--include/linux/mfd/ucb1x00.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/ucb1x00.h b/include/linux/mfd/ucb1x00.h
index 6fb907446c33..28af41756360 100644
--- a/include/linux/mfd/ucb1x00.h
+++ b/include/linux/mfd/ucb1x00.h
@@ -106,6 +106,8 @@
enum ucb1x00_reset {
UCB_RST_PROBE,
+ UCB_RST_RESUME,
+ UCB_RST_SUSPEND,
UCB_RST_REMOVE,
UCB_RST_PROBE_FAIL,
};
@@ -114,6 +116,7 @@ struct ucb1x00_plat_data {
void (*reset)(enum ucb1x00_reset);
unsigned irq_base;
int gpio_base;
+ unsigned can_wakeup;
};
struct ucb1x00 {
@@ -130,6 +133,7 @@ struct ucb1x00 {
u16 irq_fal_enbl;
u16 irq_ris_enbl;
u16 irq_mask;
+ u16 irq_wake;
struct device dev;
struct list_head node;
struct list_head devs;
OpenPOWER on IntegriCloud