summaryrefslogtreecommitdiff
path: root/arch/arm/mach-orion/gpio.c
diff options
context:
space:
mode:
authorTzachi Perelstein <tzachi@marvell.com>2007-11-15 10:57:48 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 15:03:48 +0000
commitf00666140cb84cd80276c9a874198874890d5733 (patch)
tree286e67e14efbde6374f57a8997af674d7ebc6d4b /arch/arm/mach-orion/gpio.c
parent3085de6a82821e3d227e8fae7403dc7a5dc27932 (diff)
[ARM] Orion edge GPIO IRQ support
This patch adds support for Orion edge sensitive GPIO IRQs. Signed-off-by: Tzachi Perelstein <tzachi@marvell.com> Signed-off-by: Nicolas Pitre <nico@marvell.com> CC: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm/mach-orion/gpio.c')
-rw-r--r--arch/arm/mach-orion/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-orion/gpio.c b/arch/arm/mach-orion/gpio.c
index 0418f5b1ebe7..d5f00c86d616 100644
--- a/arch/arm/mach-orion/gpio.c
+++ b/arch/arm/mach-orion/gpio.c
@@ -93,7 +93,7 @@ int gpio_get_value(unsigned pin)
int val, mask = 1 << pin;
if (orion_read(GPIO_IO_CONF) & mask)
- val = orion_read(GPIO_DATA_IN);
+ val = orion_read(GPIO_DATA_IN) ^ orion_read(GPIO_IN_POL);
else
val = orion_read(GPIO_OUT);