linux/drivers/pinctrl/sh-pfc
Laurent Pinchart 70c8f01a35 sh-pfc: Support GPIO to IRQ mapping specified IRQ resources
On non-DT platforms IRQ controllers associated with the GPIOs have a
fixed IRQ base value known at compile time. The sh-pfc driver translates
GPIO number to IRQ numbers using a hardcoded table. This mechanism
breaks on DT platforms, as the IRQ base values are dynamic in that case.

Fix this by specifying IRQs associated with GPIOs in IRQ resources,
populated automatically from the device tree. When IRQ resources are
specified the driver requires one IRQ resource per GPIO able to generate
an interrupt, and uses the translation table to compute the IRQ resource
offset instead of the IRQ number.

Cc: devicetree@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-12-12 22:07:28 +01:00
..
core.c sh-pfc: Support GPIO to IRQ mapping specified IRQ resources 2013-12-12 22:07:28 +01:00
core.h sh-pfc: Support GPIO to IRQ mapping specified IRQ resources 2013-12-12 22:07:28 +01:00
gpio.c sh-pfc: Support GPIO to IRQ mapping specified IRQ resources 2013-12-12 22:07:28 +01:00
Kconfig pinctrl: sh-pfc: r8a7791 PFC support 2013-10-27 16:40:52 +01:00
Makefile pinctrl: sh-pfc: r8a7791 PFC support 2013-10-27 16:40:52 +01:00
pfc-r8a73a4.c sh-pfc: Rename sh_pfc window field to windows 2013-12-12 22:07:23 +01:00
pfc-r8a7740.c sh-pfc: Rename sh_pfc window field to windows 2013-12-12 22:07:23 +01:00
pfc-r8a7778.c sh-pfc: r8a7778: Add CAN pin groups 2013-10-27 16:40:51 +01:00
pfc-r8a7779.c Merge branch 'pinmux/next/fixes' of git://linuxtv.org/pinchartl/fbdev into devel 2013-07-29 16:33:57 +02:00
pfc-r8a7790.c pinctrl: sh-pfc: pfc-r8a7790: Add VIN2 and VIN3 pins 2013-12-10 20:42:39 +01:00
pfc-r8a7791.c sh-pfc: r8a7791: Fix msiof groups to follow GROUP 2013-12-10 16:22:55 +01:00
pfc-sh73a0.c sh-pfc: Rename sh_pfc window field to windows 2013-12-12 22:07:23 +01:00
pfc-sh7203.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7264.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7269.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7372.c sh-pfc: Rename sh_pfc window field to windows 2013-12-12 22:07:23 +01:00
pfc-sh7720.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7722.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7723.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7724.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7734.c sh-pfc: sh7734: Use the common GP port style macros 2013-07-29 15:17:44 +02:00
pfc-sh7757.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7785.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-sh7786.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pfc-shx3.c sh-pfc: Don't duplicate argument to PINMUX_GPIO macro 2013-07-29 15:17:45 +02:00
pinctrl.c pinctrl: Pass all configs to driver on pin_config_set() 2013-08-28 13:34:41 +02:00
sh_pfc.h sh-pfc: Terminate gpios array by -1 2013-12-12 22:07:06 +01:00