mxc: emulate GPIO interrupt on both-edges
authorGuennadi Liakhovetski <lg@denx.de>
Thu, 12 Mar 2009 11:46:41 +0000 (12:46 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 7 May 2009 14:16:06 +0000 (16:16 +0200)
commit910862ec092c156023b8a6e726e8c793da0a03f7
treee7977eb5532ae53e2869bf39d877cafc20f5fd53
parentfde364742a1afec9e71e705e863d029295282fe5
mxc: emulate GPIO interrupt on both-edges

MXC GPIO controller does not support generation of interrupts on both
edges. Emulate this mode in software by reconfiguring the irq trigger
polarity on each interrupt. This follows an example of
drivers/mfd/asic3.c.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/gpio.c
arch/arm/plat-mxc/include/mach/gpio.h