gpio: vf610: add get_direction() support
authorHaibo Chen <haibo.chen@nxp.com>
Thu, 1 Aug 2024 09:30:28 +0000 (17:30 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 5 Aug 2024 09:49:54 +0000 (11:49 +0200)
commit26b95b7b588d70b5075b597ff808543503d36ac6
tree9fce33b8534ca40ef1a0f0d7f80d1372d6e175cd
parent3e7ebf271f935a316e9593d63f495498cde22f80
gpio: vf610: add get_direction() support

For IP which do not contain PDDR, currently use the pinmux API
pinctrl_gpio_direction_input() to config the output/input, pinmux
currently do not support get_direction(). So here add the GPIO
get_direction() support only for the IP which has Port Data
Direction Register (PDDR).

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/r/20240801093028.732338-3-haibo.chen@nxp.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-vf610.c