Lines Matching +full:xo +full:- +full:1
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Support for OLPC XO-1.5 System Control Interrupts (SCI)
5 * Copyright (C) 2009-2010 One Laptop per Child
12 #include <linux/olpc-ec.h>
17 #define DRV_NAME "olpc-xo15-sci"
20 #define XO15_SCI_DEVICE_NAME "OLPC XO-1.5 SCI"
26 * The normal ACPI LID wakeup behavior is wake-on-open, but not
27 * wake-on-close. This is implemented as standard by the XO-1.5 DSDT.
30 * wake-on-close behavior. This is useful (e.g.) when we oportunistically
34 * This is controlled through a custom method in the XO-1.5 DSDT.
43 return 1; in set_lid_wake_behavior()
63 if (sscanf(buf, "%u", &val) != 1) in lid_wake_on_close_store()
64 return -EINVAL; in lid_wake_on_close_store()
145 return -EINVAL; in xo15_sci_add()
151 status = acpi_evaluate_integer(device->handle, "_GPE", NULL, &tmp); in xo15_sci_add()
153 return -EINVAL; in xo15_sci_add()
160 return -ENODEV; in xo15_sci_add()
162 dev_info(&device->dev, "Initialized, GPE = 0x%lx\n", xo15_sci_gpe); in xo15_sci_add()
164 r = sysfs_create_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); in xo15_sci_add()
174 /* Enable wake-on-EC */ in xo15_sci_add()
175 if (device->wakeup.flags.valid) in xo15_sci_add()
176 device_init_wakeup(&device->dev, true); in xo15_sci_add()
191 sysfs_remove_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); in xo15_sci_remove()