Skip to content
Commit 47bd533e authored by Neil Armstrong's avatar Neil Armstrong
Browse files

gpio: emulate open drain & open source in dm_gpio_set_value()



Handle the GPIOD_OPEN_DRAIN & GPIOD_OPEN_SOURCE flags to emulate open drain
and open source by setting the GPIO line as input depending on the
requested value.

The behaviour is taken from the Linux gpiolib.

Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 375d79cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment