* [PATCH 02/02] sh-pfc: Add r8a73a4 GPIO IRQ support
@ 2013-03-18 14:50 Magnus Damm
2013-03-27 10:23 ` Linus Walleij
2013-03-27 10:43 ` Simon Horman
0 siblings, 2 replies; 3+ messages in thread
From: Magnus Damm @ 2013-03-18 14:50 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@opensource.se>
Add GPIO -> IRQ mappings to the PFC table for
the r8a73a4 SoC. Requires the IRQs to be mapped
at a fixed location. The actual IRQs are not
handled by the PFC, instead IRQC is used.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
drivers/pinctrl/sh-pfc/pfc-r8a73a4.c | 63 ++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
--- 0008/drivers/pinctrl/sh-pfc/pfc-r8a73a4.c
+++ work/drivers/pinctrl/sh-pfc/pfc-r8a73a4.c 2013-03-18 20:37:22.000000000 +0900
@@ -2793,6 +2793,66 @@ static const struct pinmux_data_reg pinm
{ },
};
+static const struct pinmux_irq pinmux_irqs[] = {
+ PINMUX_IRQ(irq_pin(0), GPIO_PORT0),
+ PINMUX_IRQ(irq_pin(1), GPIO_PORT1),
+ PINMUX_IRQ(irq_pin(2), GPIO_PORT2),
+ PINMUX_IRQ(irq_pin(3), GPIO_PORT3),
+ PINMUX_IRQ(irq_pin(4), GPIO_PORT4),
+ PINMUX_IRQ(irq_pin(5), GPIO_PORT5),
+ PINMUX_IRQ(irq_pin(6), GPIO_PORT6),
+ PINMUX_IRQ(irq_pin(7), GPIO_PORT7),
+ PINMUX_IRQ(irq_pin(8), GPIO_PORT8),
+ PINMUX_IRQ(irq_pin(9), GPIO_PORT9),
+ PINMUX_IRQ(irq_pin(10), GPIO_PORT10),
+ PINMUX_IRQ(irq_pin(11), GPIO_PORT11),
+ PINMUX_IRQ(irq_pin(12), GPIO_PORT12),
+ PINMUX_IRQ(irq_pin(13), GPIO_PORT13),
+ PINMUX_IRQ(irq_pin(14), GPIO_PORT14),
+ PINMUX_IRQ(irq_pin(15), GPIO_PORT15),
+ PINMUX_IRQ(irq_pin(16), GPIO_PORT320),
+ PINMUX_IRQ(irq_pin(17), GPIO_PORT321),
+ PINMUX_IRQ(irq_pin(18), GPIO_PORT85),
+ PINMUX_IRQ(irq_pin(19), GPIO_PORT84),
+ PINMUX_IRQ(irq_pin(20), GPIO_PORT160),
+ PINMUX_IRQ(irq_pin(21), GPIO_PORT161),
+ PINMUX_IRQ(irq_pin(22), GPIO_PORT162),
+ PINMUX_IRQ(irq_pin(23), GPIO_PORT163),
+ PINMUX_IRQ(irq_pin(24), GPIO_PORT175),
+ PINMUX_IRQ(irq_pin(25), GPIO_PORT176),
+ PINMUX_IRQ(irq_pin(26), GPIO_PORT177),
+ PINMUX_IRQ(irq_pin(27), GPIO_PORT178),
+ PINMUX_IRQ(irq_pin(28), GPIO_PORT322),
+ PINMUX_IRQ(irq_pin(29), GPIO_PORT323),
+ PINMUX_IRQ(irq_pin(30), GPIO_PORT324),
+ PINMUX_IRQ(irq_pin(31), GPIO_PORT192),
+ PINMUX_IRQ(irq_pin(32), GPIO_PORT193),
+ PINMUX_IRQ(irq_pin(33), GPIO_PORT194),
+ PINMUX_IRQ(irq_pin(34), GPIO_PORT195),
+ PINMUX_IRQ(irq_pin(35), GPIO_PORT196),
+ PINMUX_IRQ(irq_pin(36), GPIO_PORT197),
+ PINMUX_IRQ(irq_pin(37), GPIO_PORT198),
+ PINMUX_IRQ(irq_pin(38), GPIO_PORT199),
+ PINMUX_IRQ(irq_pin(39), GPIO_PORT200),
+ PINMUX_IRQ(irq_pin(40), GPIO_PORT66),
+ PINMUX_IRQ(irq_pin(41), GPIO_PORT102),
+ PINMUX_IRQ(irq_pin(42), GPIO_PORT103),
+ PINMUX_IRQ(irq_pin(43), GPIO_PORT109),
+ PINMUX_IRQ(irq_pin(44), GPIO_PORT110),
+ PINMUX_IRQ(irq_pin(45), GPIO_PORT111),
+ PINMUX_IRQ(irq_pin(46), GPIO_PORT112),
+ PINMUX_IRQ(irq_pin(47), GPIO_PORT113),
+ PINMUX_IRQ(irq_pin(48), GPIO_PORT114),
+ PINMUX_IRQ(irq_pin(49), GPIO_PORT115),
+ PINMUX_IRQ(irq_pin(50), GPIO_PORT301),
+ PINMUX_IRQ(irq_pin(51), GPIO_PORT290),
+ PINMUX_IRQ(irq_pin(52), GPIO_PORT296),
+ PINMUX_IRQ(irq_pin(53), GPIO_PORT325),
+ PINMUX_IRQ(irq_pin(54), GPIO_PORT326),
+ PINMUX_IRQ(irq_pin(55), GPIO_PORT327),
+ PINMUX_IRQ(irq_pin(56), GPIO_PORT328),
+ PINMUX_IRQ(irq_pin(57), GPIO_PORT329),
+};
const struct sh_pfc_soc_info r8a73a4_pinmux_info = {
.name = "r8a73a4_pfc",
@@ -2812,4 +2872,7 @@ const struct sh_pfc_soc_info r8a73a4_pin
.gpio_data = pinmux_data,
.gpio_data_size = ARRAY_SIZE(pinmux_data),
+
+ .gpio_irq = pinmux_irqs,
+ .gpio_irq_size = ARRAY_SIZE(pinmux_irqs),
};
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 02/02] sh-pfc: Add r8a73a4 GPIO IRQ support
2013-03-18 14:50 [PATCH 02/02] sh-pfc: Add r8a73a4 GPIO IRQ support Magnus Damm
@ 2013-03-27 10:23 ` Linus Walleij
2013-03-27 10:43 ` Simon Horman
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2013-03-27 10:23 UTC (permalink / raw)
To: linux-sh
On Mon, Mar 18, 2013 at 3:50 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> From: Magnus Damm <damm@opensource.se>
>
> Add GPIO -> IRQ mappings to the PFC table for
> the r8a73a4 SoC. Requires the IRQs to be mapped
> at a fixed location. The actual IRQs are not
> handled by the PFC, instead IRQC is used.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
This will go in with Simon's enormous patch queue I guess?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 02/02] sh-pfc: Add r8a73a4 GPIO IRQ support
2013-03-18 14:50 [PATCH 02/02] sh-pfc: Add r8a73a4 GPIO IRQ support Magnus Damm
2013-03-27 10:23 ` Linus Walleij
@ 2013-03-27 10:43 ` Simon Horman
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2013-03-27 10:43 UTC (permalink / raw)
To: linux-sh
On Wed, Mar 27, 2013 at 11:23:43AM +0100, Linus Walleij wrote:
> On Mon, Mar 18, 2013 at 3:50 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
>
> > From: Magnus Damm <damm@opensource.se>
> >
> > Add GPIO -> IRQ mappings to the PFC table for
> > the r8a73a4 SoC. Requires the IRQs to be mapped
> > at a fixed location. The actual IRQs are not
> > handled by the PFC, instead IRQC is used.
> >
> > Signed-off-by: Magnus Damm <damm@opensource.se>
>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> This will go in with Simon's enormous patch queue I guess?
Yes, that is the plan.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-27 10:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-18 14:50 [PATCH 02/02] sh-pfc: Add r8a73a4 GPIO IRQ support Magnus Damm
2013-03-27 10:23 ` Linus Walleij
2013-03-27 10:43 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).