commit | 041487cdc16029e24887cdfecc13cb04e61d2d1d | [log] [tgz] |
---|---|---|
author | Michael Heimpold <mhei@heimpold.de> | Sun Nov 03 22:59:26 2013 +0100 |
committer | Stefano Babic <sbabic@denx.de> | Wed Nov 13 10:09:09 2013 +0100 |
tree | 9d85b07e28dd6e6936bd5094ba1cd9de5ec17fb1 | |
parent | 0864e44753a1e47531c6a099a0cdc1fb047cec05 [diff] |
mxs_gpio: fix the handling in gpio_direction_output() Setting the direction and an output value should be done by 1) set the desired output value, 2) switch to output. If this is done in the inverse order, there can be a glitch on the GPIO line. This patch fixes this by using the order as described above. Signed-off-by: Michael Heimpold <mhei@heimpold.de> Acked-by: Stefano Babic <sbabic@denx.de>