Lines Matching +full:at91rm9200 +full:- +full:rtc
3 * irq-atmel-aic and irq-atmel-aic5 drivers
10 * Author: Boris BREZILLON <boris.brezillon@free-electrons.com>
25 #include "irq-atmel-aic-common.h"
45 ct->chip.irq_mask(d); in aic_common_shutdown()
51 struct aic_chip_data *aic = gc->private; in aic_common_set_type()
62 if (!(d->mask & aic->ext_irqs)) in aic_common_set_type()
63 return -EINVAL; in aic_common_set_type()
68 if (!(d->mask & aic->ext_irqs)) in aic_common_set_type()
69 return -EINVAL; in aic_common_set_type()
74 return -EINVAL; in aic_common_set_type()
97 return -EINVAL; in aic_common_irq_domain_xlate()
101 return -EINVAL; in aic_common_irq_domain_xlate()
118 aic = gc->private; in aic_common_ext_irq_of_init()
119 aic->ext_irqs |= 1; in aic_common_ext_irq_of_init()
121 of_property_for_each_u32(node, "atmel,external-irqs", hwirq) { in aic_common_ext_irq_of_init()
125 hwirq, domain->revmap_size); in aic_common_ext_irq_of_init()
129 aic = gc->private; in aic_common_ext_irq_of_init()
130 aic->ext_irqs |= (1 << (hwirq % 32)); in aic_common_ext_irq_of_init()
143 np = of_find_compatible_node(NULL, NULL, "atmel,at91rm9200-rtc"); in aic_common_rtc_irq_fixup()
146 "atmel,at91sam9x5-rtc"); in aic_common_rtc_irq_fixup()
162 #define AT91_RTT_MR 0x00 /* Real-time Mode Register */
175 for_each_compatible_node(np, NULL, "atmel,at91sam9260-rtt") { in aic_common_rtt_irq_fixup()
199 void (*fixup)(void) = match->data; in aic_common_irq_fixup()
223 return ERR_PTR(-ENOMEM); in aic_common_of_init()
227 ret = -ENOMEM; in aic_common_of_init()
233 ret = -ENOMEM; in aic_common_of_init()
247 gc->reg_base = reg_base; in aic_common_of_init()
249 gc->unused = 0; in aic_common_of_init()
250 gc->wake_enabled = ~0; in aic_common_of_init()
251 gc->chip_types[0].type = IRQ_TYPE_SENSE_MASK; in aic_common_of_init()
252 gc->chip_types[0].chip.irq_eoi = irq_gc_eoi; in aic_common_of_init()
253 gc->chip_types[0].chip.irq_set_wake = irq_gc_set_wake; in aic_common_of_init()
254 gc->chip_types[0].chip.irq_shutdown = aic_common_shutdown; in aic_common_of_init()
255 gc->private = &aic[i]; in aic_common_of_init()