Lines Matching +full:valid +full:- +full:wakeup +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2010-2014 Samsung Electronics Co., Ltd.
6 // S5PV210 - Power Management support
8 // Based on arch/arm/mach-s3c2410/pm.c
16 #include <linux/soc/samsung/s3c-pm.h>
22 #include "regs-clock.h"
34 * s3c_pm_do_save() - save a set of registers for restoration on resume.
39 * array for later restoration when we wakeup.
43 for (; count > 0; count--, ptr++) { in s3c_pm_do_save()
44 ptr->val = readl_relaxed(ptr->reg); in s3c_pm_do_save()
45 S3C_PMDBG("saved %p value %08lx\n", ptr->reg, ptr->val); in s3c_pm_do_save()
50 * s3c_pm_do_restore_core() - restore register values from the save list.
62 for (; count > 0; count--, ptr++) in s3c_pm_do_restore_core()
63 writel_relaxed(ptr->val, ptr->reg); in s3c_pm_do_restore_core()
72 * VIC wake-up support (TODO)
89 * issue a write-buffer drain just in case */ in s5pv210_cpu_suspend()
109 * Set wake-up mask registers in s5pv210_pm_prepare()
145 S3C_PMDBG("%s: wakeup masks: %08x,%08x\n", __func__, in s5pv210_suspend_enter()
148 if (s5pv210_irqwake_intmask == -1U in s5pv210_suspend_enter()
149 && eint_wakeup_mask == -1U) { in s5pv210_suspend_enter()
150 pr_err("%s: No wake-up sources!\n", __func__); in s5pv210_suspend_enter()
152 return -EINVAL; in s5pv210_suspend_enter()
166 S3C_PMDBG("%s: wakeup stat: %08x\n", __func__, in s5pv210_suspend_enter()
192 .valid = suspend_valid_only_mem,