summaryrefslogtreecommitdiff
path: root/src/mainboard/purism/librem_jsl/acpi/ac.asl
diff options
context:
space:
mode:
authorJonathon Hall <jonathon.hall@puri.sm>2023-09-14 14:41:20 -0400
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-10-20 14:22:07 +0000
commita86704aa10704c47694606e4ebd83fdabad302fa (patch)
tree22c790638480b2f81403ccd10730b2914cab8a9a /src/mainboard/purism/librem_jsl/acpi/ac.asl
parent24502f4cb0e44f53f6868f2e4e0c169ad0b60ab3 (diff)
mb/purism/librem_jsl: Add support for Librem 11
This adds support for the Librem 11 tablet, using the ME 13.50.15.1436 binary from the original BIOS (version 28.D8.E1.021) and FSP binaries from a Jasper Lake Chromebook. The following features were tested with PureOS: * Audio (speakers, microphone, headset jack) * Cameras * Display * Touchscreen and pen * Keyboard cover, with tablet/laptop mode switch indicated via ACPI * Power and volume buttons * USB-C ports (USB 2/3, DP alt mode, PD charging) * SD card reader * WLAN * Bluetooth * NVMe SSD (socketed) * Battery state information from EC * Accelerometer A UART is accessible with soldering via test points on the mainboard, documented in the mainboard Kconfig with a toggle to enable it for coreboot logging. Change-Id: I545994889ddfb41f56de09b3a42840bccbd7c4aa Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78343 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src/mainboard/purism/librem_jsl/acpi/ac.asl')
-rw-r--r--src/mainboard/purism/librem_jsl/acpi/ac.asl23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mainboard/purism/librem_jsl/acpi/ac.asl b/src/mainboard/purism/librem_jsl/acpi/ac.asl
new file mode 100644
index 0000000000..86267e8eba
--- /dev/null
+++ b/src/mainboard/purism/librem_jsl/acpi/ac.asl
@@ -0,0 +1,23 @@
+/* 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 (ACEX, One)
+
+ Method (_PSR, 0, NotSerialized) // _PSR: Power Source
+ {
+ Printf ("AC: _PSR: %o", ACEX)
+ Return (ACEX)
+ }
+
+ Method (_STA, 0, NotSerialized) // _STA: Status
+ {
+ Return (0x0F)
+ }
+}