au1000: fix gpio output
authorFlorian Fainelli <florian@openwrt.org>
Tue, 9 Sep 2008 09:20:50 +0000 (09:20 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 9 Sep 2008 09:20:50 +0000 (09:20 +0000)
commitae253edfbee3ada91ff5eda5e1c5dbb43a734700
tree0b77f0903e402cbef21d8e967c34898746c71412
parent8dc12e90968482e35a25b4bfe8443586838f208c
au1000: fix gpio output

when setting the output state of one GPIO pin we have to keep the state of the
other pins, hence use binary OR. also gpio_direction_output() wants to set an
initial value, so add that too.

this fixes a problem with the USB power switch on mtx-1 boards. (#3974)

Signed-off-by: Bruno Randolf <br1@einfach.org>
SVN-Revision: 12561
target/linux/au1000/patches/017-gpio-dir.patch [new file with mode: 0644]