aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2008-03-15 20:52:02 +0000
committerMichael Büsch <mb@bu3sch.de>2008-03-15 20:52:02 +0000
commit45c39a1e6d8e3668deb92498874f899bdf779462 (patch)
tree13b072a3a79390903fb0df7820adf55bdaddca04 /target/linux
parent6c749c6d328f5380975584eb13aaa447707e2f9e (diff)
downloadupstream-45c39a1e6d8e3668deb92498874f899bdf779462.tar.gz
upstream-45c39a1e6d8e3668deb92498874f899bdf779462.tar.bz2
upstream-45c39a1e6d8e3668deb92498874f899bdf779462.zip
bcm47xx: Fix GPIO data direction output bit assignment
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10605 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h b/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h
index 4a897d1ea4..e7807ce723 100644
--- a/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h
+++ b/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h
@@ -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;
}