* [PATCH] rb532: set gpio interrupt status and level for CompactFlash
@ 2008-10-24 17:53 Florian Fainelli
2008-10-24 20:13 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2008-10-24 17:53 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Phil Sutter, linux-mips
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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rb532: set gpio interrupt status and level for CompactFlash
2008-10-24 17:53 [PATCH] rb532: set gpio interrupt status and level for CompactFlash Florian Fainelli
@ 2008-10-24 20:13 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-10-24 20:13 UTC (permalink / raw)
To: Florian Fainelli; +Cc: Phil Sutter, linux-mips
On Fri, Oct 24, 2008 at 07:53:55PM +0200, Florian Fainelli wrote:
> 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>
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-24 20:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24 17:53 [PATCH] rb532: set gpio interrupt status and level for CompactFlash Florian Fainelli
2008-10-24 20:13 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.