diff options
author | Michael Büsch <mb@bu3sch.de> | 2008-03-15 20:52:02 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2008-03-15 20:52:02 +0000 |
commit | d3cf33a4ae5d393b489ad4410ee5fc30720f38aa (patch) | |
tree | be040efd41cc554c6757e1c6755edd7ac03ce916 /target/linux/brcm47xx/files | |
parent | c8ffd446c9cba3140c998e0bd2f37fa9d2454f50 (diff) | |
download | mtk-20170518-d3cf33a4ae5d393b489ad4410ee5fc30720f38aa.zip mtk-20170518-d3cf33a4ae5d393b489ad4410ee5fc30720f38aa.tar.gz mtk-20170518-d3cf33a4ae5d393b489ad4410ee5fc30720f38aa.tar.bz2 |
bcm47xx: Fix GPIO data direction output bit assignment
SVN-Revision: 10605
Diffstat (limited to 'target/linux/brcm47xx/files')
-rw-r--r-- | target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h | 3 |
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 4a897d1..e7807ce 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; } |