public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Support all four gpio trigger modes for OMAP1610
@ 2006-02-18  8:19 Dirk Behme
  2006-02-20 22:52 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Dirk Behme @ 2006-02-18  8:19 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]


ARM: OMAP: Support all four OMAP1610 GPIO trigger modes
(proposed by David Brownell)

Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>



[-- Attachment #2: gpio_trigger.patch --]
[-- Type: text/x-patch, Size: 483 bytes --]

--- ./arch/arm/plat-omap/gpio.c_orig	2006-02-18 07:43:54.000000000 +0100
+++ ./arch/arm/plat-omap/gpio.c	2006-02-18 08:59:30.000000000 +0100
@@ -452,10 +452,8 @@ static int _set_gpio_triggering(struct g
 		l &= ~(3 << (gpio << 1));
 		if (trigger & __IRQT_RISEDGE)
 			l |= 2 << (gpio << 1);
-		else if (trigger & __IRQT_FALEDGE)
+		if (trigger & __IRQT_FALEDGE)
 			l |= 1 << (gpio << 1);
-		else
-			goto bad;
 		break;
 	case METHOD_GPIO_730:
 		reg += OMAP730_GPIO_INT_CONTROL;


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-20 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-18  8:19 [PATCH] Support all four gpio trigger modes for OMAP1610 Dirk Behme
2006-02-20 22:52 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox