pinctrl: s32cc: enable the input buffer for a GPIO
authorAndrei Stefanescu <andrei.stefanescu@oss.nxp.com>
Tue, 23 Jul 2024 13:18:30 +0000 (16:18 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Aug 2024 08:17:43 +0000 (10:17 +0200)
commit846d9b8628a493b2eb38f1eb779a199fae7093dd
tree7d4888cf15eb96c5902710d58e39ef149d132fab
parent14411957096609b172a2d9fc1c985daa5c80f23d
pinctrl: s32cc: enable the input buffer for a GPIO

The IBE (input buffer enable) should be enabled for a GPIO. Reading the
value will return the one from the input register, writing the value
will return the one from the output register.

This offers the flexibility to check if the value intended to be set
matches the actual physical one.

Signed-off-by: Florin Buica <florin.buica@nxp.com>
Signed-off-by: Andrei Stefanescu <andrei.stefanescu@oss.nxp.com>
Link: https://lore.kernel.org/20240723131832.1171036-2-andrei.stefanescu@oss.nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nxp/pinctrl-s32cc.c