Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190416
b: refs/heads/master
c: 64b997c
h: refs/heads/master
v: v3
  • Loading branch information
viresh kumar authored and Russell King committed Apr 22, 2010
1 parent af67b51 commit e49c10e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a99d55514d3c6bfc03e41536659d781af6998f5
refs/heads/master: 64b997c5142a13373857de09599afd2f079c2f7a
6 changes: 6 additions & 0 deletions trunk/drivers/gpio/pl061.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ static int pl061_direction_output(struct gpio_chip *gc, unsigned offset,
gpiodir = readb(chip->base + GPIODIR);
gpiodir |= 1 << offset;
writeb(gpiodir, chip->base + GPIODIR);

/*
* gpio value is set again, because pl061 doesn't allow to set value of
* a gpio pin before configuring it in OUT mode.
*/
writeb(!!value << offset, chip->base + (1 << (offset + 2)));
spin_unlock_irqrestore(&chip->lock, flags);

return 0;
Expand Down

0 comments on commit e49c10e

Please sign in to comment.