Thread (2 messages) 2 messages, 2 authors, 2012-10-21

[PATCH] ARM OMAP: Enable gpio output

From: Teresa Gámez <hidden>
Date: 2012-10-18 11:35:43
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

Enable output instead of disabling it.

Signed-off-by: Teresa Gámez <redacted>
---
 arch/arm/mach-omap/omap4_generic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap/omap4_generic.c b/arch/arm/mach-omap/omap4_generic.c
index 76134f2..d7771bf 100644
--- a/arch/arm/mach-omap/omap4_generic.c
+++ b/arch/arm/mach-omap/omap4_generic.c
@@ -532,7 +532,7 @@ noinline int omap4_scale_vcores(unsigned vsel0_pin)
 		writel(val, base + 0x190);
 
 		val =  readl(base + 0x134);
-		val &= (1 << (vsel0_pin & GPIO_MASK));
+		val &= ~(1 << (vsel0_pin & GPIO_MASK));
 		writel(val, base + 0x134);
 
 		val = 1 << (vsel0_pin & GPIO_MASK);
-- 
1.7.0.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help