summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/starbook/acpi
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-07-04 14:18:52 +0100
committerFelix Singer <felixsinger@posteo.net>2022-07-07 17:24:09 +0000
commitecda77531d29d64785acbbbe83c176211ffe7128 (patch)
tree01883b450b31bbb5ede2184967a1d72dda86fb9f /src/mainboard/starlabs/starbook/acpi
parentac8b508f3fdec9e545e10df2e32cd43bcc9e4781 (diff)
mb/starlabs: Rename LabTop to StarBook
The LabTop was renamed to StarBook since the release of the Mk V. This change keeps the directory name more relevant, as there are more boards using the name StarBook. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I3513fb56c1adf663ed7bcdade2cc52cd8c0d6f4b Reviewed-on: https://review.coreboot.org/c/coreboot/+/65640 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/mainboard/starlabs/starbook/acpi')
-rw-r--r--src/mainboard/starlabs/starbook/acpi/ec.asl1
-rw-r--r--src/mainboard/starlabs/starbook/acpi/mainboard.asl34
-rw-r--r--src/mainboard/starlabs/starbook/acpi/sleep.asl17
-rw-r--r--src/mainboard/starlabs/starbook/acpi/superio.asl1
4 files changed, 53 insertions, 0 deletions
diff --git a/src/mainboard/starlabs/starbook/acpi/ec.asl b/src/mainboard/starlabs/starbook/acpi/ec.asl
new file mode 100644
index 0000000000..853b0877b3
--- /dev/null
+++ b/src/mainboard/starlabs/starbook/acpi/ec.asl
@@ -0,0 +1 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
diff --git a/src/mainboard/starlabs/starbook/acpi/mainboard.asl b/src/mainboard/starlabs/starbook/acpi/mainboard.asl
new file mode 100644
index 0000000000..5bdde36bb7
--- /dev/null
+++ b/src/mainboard/starlabs/starbook/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/starbook/acpi/sleep.asl b/src/mainboard/starlabs/starbook/acpi/sleep.asl
new file mode 100644
index 0000000000..78a2d290db
--- /dev/null
+++ b/src/mainboard/starlabs/starbook/acpi/sleep.asl
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Method (MPTS, 1, NotSerialized)
+{
+#if CONFIG(BOARD_STARLABS_STARBOOK_TGL)
+ If (Arg0 == 0x03) {
+ \_SB.PCI0.CTXS (GPP_D16)
+ }
+#endif
+
+ RPTS (Arg0)
+}
+
+Method (MWAK, 1, NotSerialized)
+{
+ RWAK (Arg0)
+}
diff --git a/src/mainboard/starlabs/starbook/acpi/superio.asl b/src/mainboard/starlabs/starbook/acpi/superio.asl
new file mode 100644
index 0000000000..853b0877b3
--- /dev/null
+++ b/src/mainboard/starlabs/starbook/acpi/superio.asl
@@ -0,0 +1 @@
+/* SPDX-License-Identifier: GPL-2.0-only */