Skip to content
Snippets Groups Projects
Commit 04c79cbd authored by Dirk Behme's avatar Dirk Behme Committed by Stefano Babic
Browse files

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: default avatarDirk Behme <dirk.behme@de.bosch.com>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent 5434caf5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment