au1000: fix gpio output
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 9 Sep 2008 09:20:50 +0000 (09:20 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 9 Sep 2008 09:20:50 +0000 (09:20 +0000)
commit365590ad71a126eaf9a2ba6a679c37b1b7032d76
treee63ecf3fc5161859dc15356e96d13aaaa8ef91b0
parentbc8c3990b64d8ee22943278782e73b02da8c0c65
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12561 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/au1000/patches/017-gpio-dir.patch [new file with mode: 0644]