Lines Matching +full:no +full:- +full:tick +full:- +full:in +full:- +full:suspend
1 // SPDX-License-Identifier: GPL-2.0
3 * Alchemy Development Board example suspend userspace interface.
10 #include <linux/suspend.h>
12 #include <asm/mach-au1x00/au1000.h>
13 #include <asm/mach-au1x00/gpio-au1000.h>
14 #include <asm/mach-db1x00/bcsr.h>
17 * Generic suspend userspace interface for Alchemy development boards.
19 * can be used by userspace to en/disable all au1x-provided wakeup
54 /* setup 1Hz-timer-based wakeup: wait for reg access */ in db1x_pm_enter()
91 printk(KERN_ERR "db1x: no wakeup source activated!\n"); in db1x_pm_begin()
92 return -EINVAL; in db1x_pm_begin()
116 #define ATTRCMP(x) (0 == strcmp(attr->attr.name, #x))
137 idx = (attr->attr.name)[4] - '0'; in db1x_pmattr_show()
145 return -ENOENT; in db1x_pmattr_show()
172 tmp = (attr->attr.name)[4] - '0'; in db1x_pmattr_store()
187 bytes = -ENOENT; in db1x_pmattr_store()
197 ATTR(gpio0) /* GPIO-based wakeup enable */
205 ATTR(timer) /* TOYMATCH2-based wakeup enable */
206 ATTR(timer_timeout) /* timer-based wakeup timeout value, in seconds */
233 * Initialize suspend interface
237 /* init TOY to tick at 1Hz if not already done. No need to wait in pm_init()
239 * the next suspend cycle. in pm_init()