Skip to content
Snippets Groups Projects
user avatar
Mark Featherston authored
This works around an issue with the hardware where both OE and
DAT are exposed in the same register. If both are updated
simultaneously, the harware makes no guarantees that OE or DAT
will actually change in any given order and may result in a
glitch of a few ns on a GPIO pin when changing direction and value
in a single write.

Setting direction to input now only affects OE bit. Setting
direction to output updates DAT first, then OE.

Fixes: 9c668632 ("gpio: add Technologic I2C-FPGA gpio support")
Signed-off-by: default avatarMark Featherston <mark@embeddedTS.com>
Signed-off-by: default avatarKris Bahnsen <kris@embeddedTS.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
03fe0035
History
Name Last commit Last update
..