aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/wlcore.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-10-01 14:41:10 -0700
committerKalle Valo <kvalo@codeaurora.org>2018-10-05 11:33:31 +0300
commit3c83dd577c7f3f49420c661e693be7049bf0ca02 (patch)
tree01b44ef02898b35ea1d8ab07cf87f7e3958d2be6 /drivers/net/wireless/ti/wlcore/wlcore.h
parentwlcore: Fix BUG with clear completion on timeout (diff)
downloadlinux-dev-3c83dd577c7f3f49420c661e693be7049bf0ca02.tar.xz
linux-dev-3c83dd577c7f3f49420c661e693be7049bf0ca02.zip
wlcore: Add support for optional wakeirq
Now with wlcore using PM runtime, we can also add support for Linux generic wakeirq handling for it if configured in the dts file. The wakeirq can be configured as the second interrupt in the dts file with interrupts-extended property where it is the padconf irq of the OOB GPIO pin used for wlcore interrupt. Note that eventually we should also allow configuring wlcore to use the SDIO dat1 IRQ for wake-up, and in that case the the wakeirq should be configured to be the padconf interrupt of the dat1 pin and not the padconf interrupt of the OOB GPIO pin. Cc: Eyal Reizer <eyalr@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/wlcore.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/wlcore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/wlcore.h b/drivers/net/wireless/ti/wlcore/wlcore.h
index d4b1f66ef457..dd14850b0603 100644
--- a/drivers/net/wireless/ti/wlcore/wlcore.h
+++ b/drivers/net/wireless/ti/wlcore/wlcore.h
@@ -199,8 +199,10 @@ struct wl1271 {
struct wl1271_if_operations *if_ops;
int irq;
+ int wakeirq;
int irq_flags;
+ int wakeirq_flags;
spinlock_t wl_lock;