Lines Matching +full:valid +full:- +full:wakeup +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0
4 // Copyright 2004-2008 Simtec Electronics
22 #include "regs-clock.h"
23 #include "regs-irq.h"
30 #include "pm-core.h"
36 /* The IRQ ext-int code goes here, it is too small to currently bother
44 unsigned long bit = 1L << IRQ_EINT_BIT(data->irq); in s3c_irqext_wake()
47 return -ENOENT; in s3c_irqext_wake()
50 state ? "enabled" : "disabled", data->irq); in s3c_irqext_wake()
63 #define any_allowed(mask, allow) (((mask) & (allow)) != (allow)) argument
80 return -EINVAL; in s3c_pm_enter()
83 /* check if we have anything to wake-up with... bad things seem in s3c_pm_enter()
84 * to happen if you suspend with no wakeup (system will often in s3c_pm_enter()
85 * require a full power-cycle) in s3c_pm_enter()
91 printk(KERN_ERR "%s: No wake-up sources!\n", __func__); in s3c_pm_enter()
93 return -EINVAL; in s3c_pm_enter()
110 S3C_PMDBG("sleep: irq wakeup masks: %08lx,%08lx\n", in s3c_pm_enter()
159 S3C_PMDBG("S3C PM Resume (post-restore)\n"); in s3c_pm_enter()
180 .valid = suspend_valid_only_mem,