Skip to content
Permalink
Browse files

gpio-s3c6410.c (set_h): changed "dat" offset from 4 to 8 (by Andy Pevy)

  • Loading branch information...
Werner Almesberger
Werner Almesberger committed Dec 23, 2011
1 parent c94470f commit 0bde889e6fc09a330d0e0b9eb9808b20b2bf13d1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/target/gpio/gpio-s3c6410.c
@@ -199,9 +199,9 @@ static void set_h(const struct port *p, int num, int c, int d, int r)
}

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);

0 comments on commit 0bde889

Please sign in to comment.
You can’t perform that action at this time.