Skip to content
Commit d19d2de6 authored by Chuanhong Guo's avatar Chuanhong Guo Committed by Bartosz Golaszewski
Browse files

gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT



Some gpio controllers ignores pin value writing when that pin is
configured as input mode. As a result, bgpio_dir_out should set
pin to output before configuring pin values or gpio pin values
can't be set up properly.
Introduce two variants of bgpio_dir_out: bgpio_dir_out_val_first
and bgpio_dir_out_dir_first, and assign direction_output according
to a new flag: BGPIOF_NO_SET_ON_INPUT.

Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
Tested-by: default avatarRené van Dorst <opensource@vdorst.com>
Reviewed-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent d1ee7e1f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment