gpio: gpio-xilinx: Add interrupt support
authorSrinivas Neeli <srinivas.neeli@xilinx.com>
Fri, 29 Jan 2021 14:26:48 +0000 (19:56 +0530)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:33 +0000 (11:43 +0100)
commita32c7caea292c4d1e417eae6e5a348d187546acf
tree63ff65458cabddcad859f4ea2e097ad2007e1dbe
parent37ef334680800263b32bb96a5156a4b47f0244a2
gpio: gpio-xilinx: Add interrupt support

Adds interrupt support to the Xilinx GPIO driver so that rising and
falling edge line events can be supported. Since interrupt support is
an optional feature in the Xilinx IP, the driver continues to support
devices which have no interrupt provided.
Depends on OF_GPIO framework for of_xlate function to translate
gpiospec to the GPIO number and flags.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/Kconfig
drivers/gpio/gpio-xilinx.c