Lines Matching +full:sleep +full:- +full:map
1 // SPDX-License-Identifier: GPL-2.0
4 // Copyright 2004-2008 Simtec Electronics
21 #include "map.h"
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()
67 * central control for sleep/resume process
79 printk(KERN_ERR "%s: error: no cpu sleep function\n", __func__); in s3c_pm_enter()
80 return -EINVAL; in s3c_pm_enter()
83 /* check if we have anything to wake-up with... bad things seem 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()
92 printk(KERN_ERR "%s: Aborting sleep\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()
125 /* send the cpu to sleep... */ in s3c_pm_enter()
153 S3C_PMDBG("%s: post sleep, preparing to return\n", __func__); in s3c_pm_enter()
157 /* ok, let's return from sleep */ in s3c_pm_enter()
159 S3C_PMDBG("S3C PM Resume (post-restore)\n"); in s3c_pm_enter()