1 /* SPDX-License-Identifier: GPL-2.0-only */
6 #include <linux/irqdomain.h>
8 #define GPIO_NO_WAKE_IRQ ~0U
11 * QCOM specific IRQ domain flags that distinguishes the handling of wakeup
12 * capable interrupts by different interrupt controllers.
14 * IRQ_DOMAIN_FLAG_QCOM_PDC_WAKEUP: Line must be masked at TLMM and the
15 * interrupt configuration is done at PDC
16 * IRQ_DOMAIN_FLAG_QCOM_MPM_WAKEUP: Interrupt configuration is handled at TLMM
18 #define IRQ_DOMAIN_FLAG_QCOM_PDC_WAKEUP (IRQ_DOMAIN_FLAG_NONCORE << 0)
19 #define IRQ_DOMAIN_FLAG_QCOM_MPM_WAKEUP (IRQ_DOMAIN_FLAG_NONCORE << 1)
22 * irq_domain_qcom_handle_wakeup: Return if the domain handles interrupt
26 * This QCOM specific irq domain call returns if the interrupt controller
27 * requires the interrupt be masked at the child interrupt controller.
29 static inline bool irq_domain_qcom_handle_wakeup(const struct irq_domain *d)
31 return (d->flags & IRQ_DOMAIN_FLAG_QCOM_PDC_WAKEUP);