| // SPDX-License-Identifier: GPL-2.0 |
| // Copyright 2010 Ben Dooks <ben-linux@fluff.org> |
| // Support for wakeup mask interrupts on newer SoCs |
| #include <linux/kernel.h> |
| #include <linux/spinlock.h> |
| #include <linux/device.h> |
| #include <plat/wakeup-mask.h> |
| void samsung_sync_wakemask(void __iomem *reg, |
| const struct samsung_wakeup_mask *mask, int nr_mask) |
| for (; nr_mask > 0; nr_mask--, mask++) { |
| if (mask->irq == NO_WAKEUP_IRQ) { |
| data = irq_get_irq_data(mask->irq); |
| /* bit of a liberty to read this directly from irq_data. */ |
| if (irqd_is_wakeup_set(data)) |
| printk(KERN_INFO "wakemask %08x => %08x\n", __raw_readl(reg), val); |