[ar71xx] generate firmware image for the D-Link DIR-615 C1 board
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1222-add-ar6k-wake-interrupt.patch.patch
1 From 0f565eebf6f9a52a66053348aa710e05732f934e Mon Sep 17 00:00:00 2001
2 From: Matt <matt_hsu@openmoko.org>
3 Date: Wed, 2 Jul 2008 23:02:14 +0100
4 Subject: [PATCH] add-ar6k-wake-interrupt.patch
5
6 Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
7
8 - add an interrupt for ar6k wifi module
9 ---
10 arch/arm/mach-s3c2440/mach-gta02.c | 15 +++++++++++++++
11 1 files changed, 15 insertions(+), 0 deletions(-)
12
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)
18 return IRQ_HANDLED;
19 }
20
21 +static irqreturn_t ar6000_wow_irq(int irq, void *param)
22 +{
23 + printk(KERN_DEBUG "ar6000_wow interrupt\n");
24 + return IRQ_HANDLED;
25 +}
26 +
27 static void __init gta02_machine_init(void)
28 {
29 int rc;
30 @@ -1601,6 +1607,15 @@ static void __init gta02_machine_init(void)
31 if (rc < 0)
32 printk(KERN_ERR "GTA02: can't request GSM modem wakeup IRQ\n");
33 enable_irq_wake(GTA02_IRQ_MODEM);
34 +
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,
38 + "ar6000", NULL);
39 +
40 + if (rc < 0)
41 + printk(KERN_ERR "GTA02: can't request ar6k wakeup IRQ\n");
42 + enable_irq_wake(GTA02_IRQ_WLAN_GPIO1);
43 }
44
45 MACHINE_START(NEO1973_GTA02, "GTA02")
46 --
47 1.5.6.5
48
This page took 0.042908 seconds and 5 git commands to generate.