]> Gentwo Git Trees - linux/.git/commit
gpio: tqmx86: add support for changing GPIO directions
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 12 Dec 2024 14:08:09 +0000 (15:08 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 16 Dec 2024 09:00:46 +0000 (10:00 +0100)
commit2251fbd05f2357927fa5c5a8dd955f84da883008
treefe363db2171ca30b9a4c86565fba7c716798fef0
parenta1389f5c128e80c8ad3132bbdc7b5061f3710b7f
gpio: tqmx86: add support for changing GPIO directions

Only GPIOs 4..7 have IRQ support on the TQMx86 variants currently handled
by the driver, but apart from that, changing directions works fine. The
default directions are left unchanged (0..3 output, 4..7 input) to match
the COM Express specification.

A tqmx86_gpio_set() variant without locking is introduced as a new
helper.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Link: https://lore.kernel.org/r/d89da2f0e13fa6c8ec3f9076eed242133a1e3a63.1734001247.git.matthias.schiffer@ew.tq-group.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-tqmx86.c