aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMatt <matt_hsu@openmoko.org>2008-11-19 17:09:54 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:54 +0000
commit81898296568aa338f68a11426490bf25162f502a (patch)
tree847c01e2c803e85c728ede5848b9d23c11cd3cca /arch
parent5553ff9ea9d0102f3e2b191e7364b112247f7186 (diff)
add-ar6k-wake-interrupt.patch
Signed-off-by: Matt Hsu <matt_hsu@openmoko.org> - add an interrupt for ar6k wifi module
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 686291bfeae..71183322fd0 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -1498,6 +1498,12 @@ static irqreturn_t gta02_modem_irq(int irq, void *param)
return IRQ_HANDLED;
}
+static irqreturn_t ar6000_wow_irq(int irq, void *param)
+{
+ printk(KERN_DEBUG "ar6000_wow interrupt\n");
+ return IRQ_HANDLED;
+}
+
static void __init gta02_machine_init(void)
{
int rc;
@@ -1601,6 +1607,15 @@ static void __init gta02_machine_init(void)
if (rc < 0)
printk(KERN_ERR "GTA02: can't request GSM modem wakeup IRQ\n");
enable_irq_wake(GTA02_IRQ_MODEM);
+
+ /* Make sure the wifi module can wake us up*/
+ set_irq_type(GTA02_IRQ_WLAN_GPIO1, IRQT_RISING);
+ rc = request_irq(GTA02_IRQ_WLAN_GPIO1, ar6000_wow_irq, IRQF_DISABLED,
+ "ar6000", NULL);
+
+ if (rc < 0)
+ printk(KERN_ERR "GTA02: can't request ar6k wakeup IRQ\n");
+ enable_irq_wake(GTA02_IRQ_WLAN_GPIO1);
}
MACHINE_START(NEO1973_GTA02, "GTA02")