1 From ce7b2df450b6dcd7c34cc47c1fe2b3b2d06d612f Mon Sep 17 00:00:00 2001
2 From: Matt <matt_hsu@openmoko.org>
3 Date: Fri, 25 Jul 2008 23:06:17 +0100
4 Subject: [PATCH] add-ar6k-wake-interrupt.patch
6 Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
8 - add an interrupt for ar6k wifi module
10 arch/arm/mach-s3c2440/mach-gta02.c | 15 +++++++++++++++
11 1 files changed, 15 insertions(+), 0 deletions(-)
13 diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
14 index 686291b..7118332 100644
15 --- a/arch/arm/mach-s3c2440/mach-gta02.c
16 +++ b/arch/arm/mach-s3c2440/mach-gta02.c
17 @@ -1498,6 +1498,12 @@ static irqreturn_t gta02_modem_irq(int irq, void *param)
21 +static irqreturn_t ar6000_wow_irq(int irq, void *param)
23 + printk(KERN_DEBUG "ar6000_wow interrupt\n");
27 static void __init gta02_machine_init(void)
30 @@ -1601,6 +1607,15 @@ static void __init gta02_machine_init(void)
32 printk(KERN_ERR "GTA02: can't request GSM modem wakeup IRQ\n");
33 enable_irq_wake(GTA02_IRQ_MODEM);
35 + /* Make sure the wifi module can wake us up*/
36 + set_irq_type(GTA02_IRQ_WLAN_GPIO1, IRQT_RISING);
37 + rc = request_irq(GTA02_IRQ_WLAN_GPIO1, ar6000_wow_irq, IRQF_DISABLED,
41 + printk(KERN_ERR "GTA02: can't request ar6k wakeup IRQ\n");
42 + enable_irq_wake(GTA02_IRQ_WLAN_GPIO1);
45 MACHINE_START(NEO1973_GTA02, "GTA02")