Commit 9d833bbe authored by Magnus Damm's avatar Magnus Damm Committed by Simon Horman

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: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 7c9e3c7a
...@@ -278,6 +278,7 @@ static int intc_irqpin_irq_domain_map(struct irq_domain *h, unsigned int virq, ...@@ -278,6 +278,7 @@ static int intc_irqpin_irq_domain_map(struct irq_domain *h, unsigned int virq,
static struct irq_domain_ops intc_irqpin_irq_domain_ops = { static struct irq_domain_ops intc_irqpin_irq_domain_ops = {
.map = intc_irqpin_irq_domain_map, .map = intc_irqpin_irq_domain_map,
.xlate = irq_domain_xlate_twocell,
}; };
static int intc_irqpin_probe(struct platform_device *pdev) static int intc_irqpin_probe(struct platform_device *pdev)
...@@ -437,11 +438,19 @@ static int intc_irqpin_remove(struct platform_device *pdev) ...@@ -437,11 +438,19 @@ static int intc_irqpin_remove(struct platform_device *pdev)
return 0; return 0;
} }
static const struct of_device_id intc_irqpin_dt_ids[] = {
{ .compatible = "renesas,intc-irqpin", },
{},
};
MODULE_DEVICE_TABLE(of, intc_irqpin_dt_ids);
static struct platform_driver intc_irqpin_device_driver = { static struct platform_driver intc_irqpin_device_driver = {
.probe = intc_irqpin_probe, .probe = intc_irqpin_probe,
.remove = intc_irqpin_remove, .remove = intc_irqpin_remove,
.driver = { .driver = {
.name = "renesas_intc_irqpin", .name = "renesas_intc_irqpin",
.of_match_table = intc_irqpin_dt_ids,
.owner = THIS_MODULE,
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment