Searched hist:"04 c79cbd5f8f773aa7823feec6e77862e7e6426f" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/gpio/ |
| H A D | mxc_gpio.c | 04c79cbd5f8f773aa7823feec6e77862e7e6426f Mon Jul 15 13:58:27 UTC 2013 Dirk Behme <dirk.behme@de.bosch.com> mxc_gpio: Correct the GPIO handling in gpio_direction_output()
Setting the direction and an output value should be done by
First, set the desired output value.
Then, switch to output.
If this is done in the inverse order, like at the moment, there can be a glitch on the GPIO line while switching first the old output value and aftwards the new one.
Fix this by inverting the order of the direction/set_value calls.
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Acked-by: Stefano Babic <sbabic@denx.de>
|