| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] rb532: set gpio interrupt status and level for CompactFlash |
| From: | Florian Fainelli <florian@openwrt.org> |
| Date: | Fri, 24 Oct 2008 19:53:55 +0200 |
| Cc: | Phil Sutter <n0-1@freewrt.org>, "linux-mips" <linux-mips@linux-mips.org> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id:sender; bh=/TKtnDoZ0exXSMlOU58toncIMgjxNsFcGuEkBb9nnug=; b=RR8HjUAIbRjtPDuzZzzdTLcrMSuPlHRKjM4B41ELAYTdo5V+AKe7znJYkNJVqjjE7y hpbA9BE8HyWNLVMsG6FsZ2HuwXjbSX3FfXrgFYo1RTUyjYj5RWRwS6e2zE/h4HjvhZcH sorplXF0LLfyNVAQS5m9u0GrN396Znwzee4UY= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:subject:mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id:sender; b=RA6yBURS/42xdjg3O1rrOOUWRBU6OOB/CurJPoXORNmP5jgrkyRdj0X6olTesOo3Ur abRuKgX2yIq3aM9RMaFHUTjXx3NThH7XWSnfI+tQ14Xgq7VZjdQZe0NKC/ccLJJM4qil 44cXy9BKquZRcGLs9jSFkvk8vu8sK0JHln3is= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
This patch sets the correct interrupt status and level
in order to get the CompactFlash adapter working.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c
index 76a7fd9..70c4a67 100644
--- a/arch/mips/rb532/gpio.c
+++ b/arch/mips/rb532/gpio.c
@@ -310,6 +310,10 @@ int __init rb532_gpio_init(void)
return -ENXIO;
}
+ /* Set the interrupt status and level for the CF pin */
+ rb532_gpio_set_int_level(&rb532_gpio_chip->chip, CF_GPIO_NUM, 1);
+ rb532_gpio_set_int_status(&rb532_gpio_chip->chip, CF_GPIO_NUM, 0);
+
return 0;
}
arch_initcall(rb532_gpio_init);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH][MIPS] fix kgdb build error, David Daney |
|---|---|
| Next by Date: | Re: [PATCH 11/37] Cavium OCTEON: ebase isn't just CAC_BASE, Maciej W. Rozycki |
| Previous by Thread: | [PATCH] Set ENOSYS to errno on illegal system call number for syscall(2), Atsushi Nemoto |
| Next by Thread: | Re: [PATCH] rb532: set gpio interrupt status and level for CompactFlash, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |