1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 03:18:26 +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:
mb 2008-03-15 20:52:02 +00:00
parent 303d6ffd98
commit 4881d3689d

View File

@ -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;
}