linux/drivers/pinctrl/sunxi
Chen-Yu Tsai d54e9a28ca pinctrl: sunxi: create irq/pin mapping during init
The irq/pin mapping is used to lookup the pin to mux to the irq
function when the irq is enabled. It is created when gpio_to_irq
is called. Creating the mapping during init allows us to map the
interrupts directly from the device tree.

Originally the IRQ to pin mapping was created when gpio_to_irq
was called with a GPIO handle. The mapping in turn is used to mux
the pin into EINT mode.

If the mapping is created during gpio_to_irq, we can't use the
interrupts directly, i.e. through the DT with "interrupts = <&pio A 4>".

Instead we'd have to use "gpios = <&pio A B>", then pass the gpio
through to gpio_to_irq.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2014-05-27 16:11:30 +02:00
..
Kconfig pinctrl: sunxi: depend on RESET_CONTROLLER 2014-05-27 15:19:21 +02:00
Makefile pinctrl: sunxi: Fix recursive dependency 2014-05-23 00:35:16 +02:00
pinctrl-sun4i-a10.c pinctrl: sunxi: Move Allwinner A10 pinctrl driver to a driver of its own 2014-05-04 00:03:28 -07:00
pinctrl-sun5i-a10s.c pinctrl: sunxi: Move Allwinner A10s pinctrl driver to a driver of its own 2014-05-04 00:03:29 -07:00
pinctrl-sun5i-a13.c pinctrl: sunxi: Move Allwinner A13 pinctrl driver to a driver of its own 2014-05-04 00:03:29 -07:00
pinctrl-sun6i-a31-r.c pinctrl: sunxi: Move the reset handling functions out of the core 2014-05-04 19:57:18 -05:00
pinctrl-sun6i-a31.c pinctrl: sunxi: Move Allwinner A31 pinctrl driver to a driver of its own 2014-05-04 00:03:30 -07:00
pinctrl-sun7i-a20.c pinctrl: sunxi: Move Allwinner A20 pinctrl driver to a driver of its own 2014-05-04 00:04:49 -07:00
pinctrl-sunxi.c pinctrl: sunxi: create irq/pin mapping during init 2014-05-27 16:11:30 +02:00
pinctrl-sunxi.h pinctrl: sunxi: Libraryse the driver 2014-05-04 00:03:24 -07:00