mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 22:53:09 +02:00
bcm47xx: Fix GPIO data direction output bit assignment
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10605 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
303d6ffd98
commit
4881d3689d
@ -22,7 +22,8 @@ static inline int gpio_direction_input(unsigned gpio)
|
||||
|
||||
static inline int gpio_direction_output(unsigned gpio, int value)
|
||||
{
|
||||
ssb_gpio_outen(&ssb, 1 << gpio, value << gpio);
|
||||
ssb_gpio_out(&ssb, 1 << gpio, (value ? 1 << gpio : 0));
|
||||
ssb_gpio_outen(&ssb, 1 << gpio, 1 << gpio);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user