mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2026-01-06 11:14:43 +00:00
bcm47xx: Fix GPIO data direction output bit assignment
SVN-Revision: 10605
This commit is contained in:
parent
c8ffd446c9
commit
d3cf33a4ae
@ -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