commit | f51b8da57a52f7ad80d1f04ed9d825969cad0997 | [log] [tgz] |
---|---|---|
author | Neil Armstrong <narmstrong@baylibre.com> | Tue May 05 10:43:17 2020 +0200 |
committer | Neil Armstrong <narmstrong@baylibre.com> | Mon May 11 15:12:53 2020 +0200 |
tree | 2454f95a2f6666d56fa3351f78fdad2cb435cda0 | |
parent | 19174549d0c52a35683c956f6a6a0f014616daee [diff] |
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: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org>