summaryrefslogtreecommitdiff
path: root/src/mainboard/system76/rpl/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/system76/rpl/acpi')
-rw-r--r--src/mainboard/system76/rpl/acpi/backlight.asl31
-rw-r--r--src/mainboard/system76/rpl/acpi/mainboard.asl12
-rw-r--r--src/mainboard/system76/rpl/acpi/sleep.asl9
3 files changed, 52 insertions, 0 deletions
diff --git a/src/mainboard/system76/rpl/acpi/backlight.asl b/src/mainboard/system76/rpl/acpi/backlight.asl
new file mode 100644
index 0000000000..f020234450
--- /dev/null
+++ b/src/mainboard/system76/rpl/acpi/backlight.asl
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <drivers/intel/gma/acpi/gma.asl>
+
+Scope (GFX0)
+{
+ Name (BRIG, Package (22) {
+ 40, /* default AC */
+ 40, /* default Battery */
+ 5,
+ 10,
+ 15,
+ 20,
+ 25,
+ 30,
+ 35,
+ 40,
+ 45,
+ 50,
+ 55,
+ 60,
+ 65,
+ 70,
+ 75,
+ 80,
+ 85,
+ 90,
+ 95,
+ 100
+ })
+}
diff --git a/src/mainboard/system76/rpl/acpi/mainboard.asl b/src/mainboard/system76/rpl/acpi/mainboard.asl
new file mode 100644
index 0000000000..c982a9ee4c
--- /dev/null
+++ b/src/mainboard/system76/rpl/acpi/mainboard.asl
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#define EC_GPE_SCI 0x6E
+#define EC_GPE_SWI 0x6B
+#include <ec/system76/ec/acpi/ec.asl>
+
+Scope (\_SB) {
+ #include "sleep.asl"
+ Scope (PCI0) {
+ #include "backlight.asl"
+ }
+}
diff --git a/src/mainboard/system76/rpl/acpi/sleep.asl b/src/mainboard/system76/rpl/acpi/sleep.asl
new file mode 100644
index 0000000000..8a2a22c55b
--- /dev/null
+++ b/src/mainboard/system76/rpl/acpi/sleep.asl
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+External(\TBTS, MethodObj)
+
+Method(MPTS, 1, Serialized) {
+ If (CondRefOf(\TBTS)) {
+ \TBTS()
+ }
+}