]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[ARM] 4670/1: ep93xx: implement IRQT_BOTHEDGE gpio irq sense type
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 26 Nov 2007 17:49:08 +0000 (18:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 14:37:31 +0000 (14:37 +0000)
commit3c9a071d77e007464952a2d41b6686d98eb3f0b8
tree7e346e17e81ed78adaeee94741c2ec68fd8fac28
parent7ca722533979d47563e75a40c86c405153818b83
[ARM] 4670/1: ep93xx: implement IRQT_BOTHEDGE gpio irq sense type

Having a both-edge sensitive irq trigger type is required for the
generic gpio-keys input driver; alas the ep93xx does not support
both-edge gpio triggers in hardware, so this patch implements them by
switching edge polarity on each triggered interrupt.  This is the same
approach as taken by the Orion SoC both-edge gpio irq support
implementation.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ep93xx/core.c