r6008 - trunk/src/target/gpio

werner at docs.openmoko.org werner at docs.openmoko.org
Fri Dec 23 21:59:54 CET 2011


Author: werner
Date: 2011-12-23 21:59:54 +0100 (Fri, 23 Dec 2011)
New Revision: 6008

Modified:
   trunk/src/target/gpio/gpio-s3c6410.c
Log:
gpio-s3c6410.c (set_h): changed "dat" offset from 4 to 8 (by Andy Pevy)



Modified: trunk/src/target/gpio/gpio-s3c6410.c
===================================================================
--- trunk/src/target/gpio/gpio-s3c6410.c	2011-12-23 14:38:45 UTC (rev 6007)
+++ trunk/src/target/gpio/gpio-s3c6410.c	2011-12-23 20:59:54 UTC (rev 6008)
@@ -199,9 +199,9 @@
 	}
 	
 	if (d != -1) {
-		dat = *(uint32_t *) (mem+p->offset+4);
+		dat = *(uint32_t *) (mem+p->offset+8);
 		dat = (dat & ~(1 << num)) | (d << num);
-		*(uint32_t *) (mem+p->offset+4) = dat;
+		*(uint32_t *) (mem+p->offset+8) = dat;
 	}
 
 	pud = *(uint32_t *) (mem+p->offset+12);




More information about the commitlog mailing list