Lines Matching +full:suspend +full:- +full:to +full:- +full:ram
1 // SPDX-License-Identifier: GPL-2.0
4 // Copyright 2004-2008 Simtec Electronics
8 // S3C common power management (suspend to ram) support.
11 #include <linux/suspend.h>
19 #include <asm/suspend.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()
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()
119 /* flush cache back to ram */ 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()
162 S3C_PMDBG("S3C PM Resume (post-restore)\n"); in s3c_pm_enter()