]> git.sur5r.net Git - u-boot/commit
mxs_gpio: fix the handling in gpio_direction_output()
authorMichael Heimpold <mhei@heimpold.de>
Sun, 3 Nov 2013 21:59:26 +0000 (22:59 +0100)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Nov 2013 09:09:09 +0000 (10:09 +0100)
commitac135f66992f65959fcf8245f2ea8a9109a4a913
tree9d85b07e28dd6e6936bd5094ba1cd9de5ec17fb1
parent85164e0c54f4beaee592f9d25d3f1ed61995bf0f
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>
drivers/gpio/mxs_gpio.c