Lines Matching +full:edge +full:- +full:high

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2015-2016 Vladimir Zapolskiy <vz@mleia.com>
37 return readl_relaxed(ic->base + reg); in lpc32xx_ic_read()
43 writel_relaxed(val, ic->base + reg); in lpc32xx_ic_write()
49 u32 val, mask = BIT(d->hwirq); in lpc32xx_irq_mask()
58 u32 val, mask = BIT(d->hwirq); in lpc32xx_irq_unmask()
67 u32 mask = BIT(d->hwirq); in lpc32xx_irq_ack()
75 u32 val, mask = BIT(d->hwirq); in lpc32xx_irq_set_type()
76 bool high, edge; in lpc32xx_irq_set_type() local
80 edge = true; in lpc32xx_irq_set_type()
81 high = true; in lpc32xx_irq_set_type()
84 edge = true; in lpc32xx_irq_set_type()
85 high = false; in lpc32xx_irq_set_type()
88 edge = false; in lpc32xx_irq_set_type()
89 high = true; in lpc32xx_irq_set_type()
92 edge = false; in lpc32xx_irq_set_type()
93 high = false; in lpc32xx_irq_set_type()
97 return -EINVAL; in lpc32xx_irq_set_type()
103 if (high) in lpc32xx_irq_set_type()
110 if (edge) { in lpc32xx_irq_set_type()
127 seq_printf(p, "%08x.mic", ic->addr); in lpc32xx_irq_print_chip()
129 seq_printf(p, "%08x.sic", ic->addr); in lpc32xx_irq_print_chip()
148 generic_handle_domain_irq(lpc32xx_mic_irqc->domain, irq); in lpc32xx_handle_irq()
163 generic_handle_domain_irq(ic->domain, irq); in lpc32xx_sic_handler()
172 struct lpc32xx_irq_chip *ic = id->host_data; in lpc32xx_irq_domain_map()
197 bool is_mic = of_device_is_compatible(node, "nxp,lpc3220-mic"); in lpc32xx_of_ic_init()
203 return -ENOMEM; in lpc32xx_of_ic_init()
205 irqc->addr = addr; in lpc32xx_of_ic_init()
206 irqc->base = of_iomap(node, 0); in lpc32xx_of_ic_init()
207 if (!irqc->base) { in lpc32xx_of_ic_init()
210 return -EINVAL; in lpc32xx_of_ic_init()
213 irqc->domain = irq_domain_add_linear(node, NR_LPC32XX_IC_IRQS, in lpc32xx_of_ic_init()
215 if (!irqc->domain) { in lpc32xx_of_ic_init()
217 iounmap(irqc->base); in lpc32xx_of_ic_init()
219 return -ENODEV; in lpc32xx_of_ic_init()
241 IRQCHIP_DECLARE(nxp_lpc32xx_mic, "nxp,lpc3220-mic", lpc32xx_of_ic_init);
242 IRQCHIP_DECLARE(nxp_lpc32xx_sic, "nxp,lpc3220-sic", lpc32xx_of_ic_init);