Skip to contentSkip to conversation

Support all four gpio trigger modes for OMAP1610

PATCH In review Dirk Behme 2 participants 2 messages Feb 18, 2006 – Feb 20, 2006

Subsystems (2)
lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/1 Support all four gpio trigger modes for OMAP1610

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

Signed-off-by Dirk Behme <dirk.behme_at_gmail.com>
arch/arm/plat-omap/gpio.c renamed from arch/arm/plat-omap/gpio.c_orig +1 -3
@@ -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;
#1 lore raw
Quoted 3 lines · Dirk Behme

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

Pushing this one too.

Tony