bcm47xx: Fix GPIO data direction output bit assignment
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10605 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
6c749c6d32
commit
45c39a1e6d
|
@ -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