summaryrefslogtreecommitdiff
path: root/src/ec/purism/librem-ec/acpi/ac.asl
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@puri.sm>2021-04-14 13:15:43 -0500
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:13:34 +0000
commit7d57d561b14cfe2390fe068d34089b826c968328 (patch)
tree0286c62e452792f27ef4bfab4aa403e51813ba4b /src/ec/purism/librem-ec/acpi/ac.asl
parent5f20e85ff3138a0c355cc2f136e7fc02ecd6aa17 (diff)
ec/purism/librem-ec: Add support for Purism Librem EC
Initial commit is a clone of ec/system76/ec with string changes; Purism-specific functionality will be added in subsequent commits. Change-Id: I8c51724e6dbfe1bc09496537f9e031643f95c755 Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52390 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/ec/purism/librem-ec/acpi/ac.asl')
-rw-r--r--src/ec/purism/librem-ec/acpi/ac.asl22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ec/purism/librem-ec/acpi/ac.asl b/src/ec/purism/librem-ec/acpi/ac.asl
new file mode 100644
index 0000000000..7326676198
--- /dev/null
+++ b/src/ec/purism/librem-ec/acpi/ac.asl
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Device (AC)
+{
+ Name (_HID, "ACPI0003" /* Power Source Device */) // _HID: Hardware ID
+ Name (_PCL, Package (0x01) // _PCL: Power Consumer List
+ {
+ _SB
+ })
+
+ Name (ACFG, One)
+
+ Method (_PSR, 0, NotSerialized) // _PSR: Power Source
+ {
+ Return (ACFG)
+ }
+
+ Method (_STA, 0, NotSerialized) // _STA: Status
+ {
+ Return (0x0F)
+ }
+}