diff options
| author | Magnus Damm <damm@opensource.se> | 2013-03-06 01:16:08 -0500 |
|---|---|---|
| committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-18 08:26:07 -0400 |
| commit | 9d833bbe49953a9a07f9ebd7a9ad170c308bd692 (patch) | |
| tree | 576a41976a82a7359987c319b401c11000719bd4 /drivers | |
| parent | 7c9e3c7acd107b967495c44b984f855897caf518 (diff) | |
irqchip: intc-irqpin: Initial DT support
Add initial DT support to the INTC External IRQ Pin
driver. At this point only hardware with 4-bit wide
sense registers is supported via DT.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/irqchip/irq-renesas-intc-irqpin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c index 21f46027f39a..fd5dabc2235d 100644 --- a/drivers/irqchip/irq-renesas-intc-irqpin.c +++ b/drivers/irqchip/irq-renesas-intc-irqpin.c | |||
| @@ -278,6 +278,7 @@ static int intc_irqpin_irq_domain_map(struct irq_domain *h, unsigned int virq, | |||
| 278 | 278 | ||
| 279 | static struct irq_domain_ops intc_irqpin_irq_domain_ops = { | 279 | static struct irq_domain_ops intc_irqpin_irq_domain_ops = { |
| 280 | .map = intc_irqpin_irq_domain_map, | 280 | .map = intc_irqpin_irq_domain_map, |
| 281 | .xlate = irq_domain_xlate_twocell, | ||
| 281 | }; | 282 | }; |
| 282 | 283 | ||
| 283 | static int intc_irqpin_probe(struct platform_device *pdev) | 284 | static int intc_irqpin_probe(struct platform_device *pdev) |
| @@ -437,11 +438,19 @@ static int intc_irqpin_remove(struct platform_device *pdev) | |||
| 437 | return 0; | 438 | return 0; |
| 438 | } | 439 | } |
| 439 | 440 | ||
| 441 | static const struct of_device_id intc_irqpin_dt_ids[] = { | ||
| 442 | { .compatible = "renesas,intc-irqpin", }, | ||
| 443 | {}, | ||
| 444 | }; | ||
| 445 | MODULE_DEVICE_TABLE(of, intc_irqpin_dt_ids); | ||
| 446 | |||
| 440 | static struct platform_driver intc_irqpin_device_driver = { | 447 | static struct platform_driver intc_irqpin_device_driver = { |
| 441 | .probe = intc_irqpin_probe, | 448 | .probe = intc_irqpin_probe, |
| 442 | .remove = intc_irqpin_remove, | 449 | .remove = intc_irqpin_remove, |
| 443 | .driver = { | 450 | .driver = { |
| 444 | .name = "renesas_intc_irqpin", | 451 | .name = "renesas_intc_irqpin", |
| 452 | .of_match_table = intc_irqpin_dt_ids, | ||
| 453 | .owner = THIS_MODULE, | ||
| 445 | } | 454 | } |
| 446 | }; | 455 | }; |
| 447 | 456 | ||
