diff options
author | mirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-12 11:58:53 +0000 |
---|---|---|
committer | mirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-12 11:58:53 +0000 |
commit | fc54b9bf158eea9cae647ce2c58f7d9989af173a (patch) | |
tree | 54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.24/1222-add-ar6k-wake-interrupt.patch.patch | |
parent | d9f49b62b28ebd245587854efa484974d90debbf (diff) |
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1222-add-ar6k-wake-interrupt.patch.patch')
-rw-r--r-- | target/linux/s3c24xx/patches-2.6.24/1222-add-ar6k-wake-interrupt.patch.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1222-add-ar6k-wake-interrupt.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1222-add-ar6k-wake-interrupt.patch.patch new file mode 100644 index 0000000000..f3a6eecf90 --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.24/1222-add-ar6k-wake-interrupt.patch.patch @@ -0,0 +1,48 @@ +From 0f565eebf6f9a52a66053348aa710e05732f934e Mon Sep 17 00:00:00 2001 +From: Matt <matt_hsu@openmoko.org> +Date: Wed, 2 Jul 2008 23:02:14 +0100 +Subject: [PATCH] add-ar6k-wake-interrupt.patch + +Signed-off-by: Matt Hsu <matt_hsu@openmoko.org> + +- add an interrupt for ar6k wifi module +--- + arch/arm/mach-s3c2440/mach-gta02.c | 15 +++++++++++++++ + 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 686291b..7118332 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") +-- +1.5.6.5 + |