summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/labtop/acpi
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2021-07-05 16:03:15 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-11-22 14:53:04 +0000
commit17441a3ac5a114fc8386e8da50ef802e159c97b7 (patch)
tree0ef9df707f826c2b901bd2ee14aa81ba30d45a9e /src/mainboard/starlabs/labtop/acpi
parentbe0722ac9145ac0203aca26165cbc9ee46b2b1b7 (diff)
mainboard/starlabs: Add StarBook Mk V
Tested using MrChromeBox's `uefipayload_202107` branch: * Windows 10 * Ubuntu 20.04 * MX Linux 19.4 * Manjaro 21 No known issues. https://starlabs.systems/pages/starbook-specification Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I090971a9e8d2be5b08be886d00d304607304b645 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56088 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/starlabs/labtop/acpi')
-rw-r--r--src/mainboard/starlabs/labtop/acpi/mainboard.asl34
-rw-r--r--src/mainboard/starlabs/labtop/acpi/sleep.asl15
2 files changed, 49 insertions, 0 deletions
diff --git a/src/mainboard/starlabs/labtop/acpi/mainboard.asl b/src/mainboard/starlabs/labtop/acpi/mainboard.asl
new file mode 100644
index 0000000000..5bdde36bb7
--- /dev/null
+++ b/src/mainboard/starlabs/labtop/acpi/mainboard.asl
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Scope (\_SB) {
+ #include "sleep.asl"
+}
+
+/*
+ * This platform doesn't support SoundWire but there
+ * is a kernel bug in some 5.10.x releases.
+ *
+ * Debian testing live CD (at 4th Feb 2021) uses 5.10.9-1. More
+ * details can be found at https://bit.ly/3ttdffG but it appears to
+ * be triggered by missing SoundWire ACPI entries.
+ *
+ * Add the minimal set to make it work again.
+ */
+Scope (_SB.PCI0.HDAS)
+{
+ Device (SNDW)
+ {
+ Name (_ADR, 0x40000000)
+
+ Name (_CID, Package (0x02)
+ {
+ "PRP0001",
+ "PNP0A05"
+ })
+
+ Method (_STA, 0, NotSerialized)
+ {
+ Return (0x0B)
+ }
+ }
+}
diff --git a/src/mainboard/starlabs/labtop/acpi/sleep.asl b/src/mainboard/starlabs/labtop/acpi/sleep.asl
new file mode 100644
index 0000000000..9dc818d04d
--- /dev/null
+++ b/src/mainboard/starlabs/labtop/acpi/sleep.asl
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Method (MPTS, 1, NotSerialized)
+{
+ If (Arg0)
+ {
+ RPTS (Arg0)
+ }
+}
+
+Method (MWAK, 1, NotSerialized)
+{
+ RWAK (Arg0)
+ Return (0x00)
+}