aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/apple/hybrid_graphics/acpi/gmux.asl
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/apple/hybrid_graphics/acpi/gmux.asl')
-rw-r--r--src/drivers/apple/hybrid_graphics/acpi/gmux.asl39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/drivers/apple/hybrid_graphics/acpi/gmux.asl b/src/drivers/apple/hybrid_graphics/acpi/gmux.asl
new file mode 100644
index 0000000000..bf6c8f0e44
--- /dev/null
+++ b/src/drivers/apple/hybrid_graphics/acpi/gmux.asl
@@ -0,0 +1,39 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+Device (GMUX)
+{
+ Name (_HID, EisaId ("APP000B"))
+ Name (_CID, "gmux")
+ Name (_STA, 0x0B)
+ Name (_CRS, ResourceTemplate ()
+ {
+ IO (Decode16,
+ 0x0700, // Range Minimum
+ 0x07FF, // Range Maximum
+ 0x01, // Alignment
+ 0xFF // Length
+ )
+ })
+ Name (_PRW, Package (0x02) { 0x16, 0x03 })
+ Scope (\_GPE)
+ {
+ Method (_L16, 0, NotSerialized)
+ {
+ Notify (\_SB.PCI0.LPCB.GMUX, 0x80)
+ }
+ }
+
+ Name (GMGP, 0x16)
+ Method (GMSP, 1, NotSerialized)
+ {
+ If (Arg0 == 0)
+ {
+ \GP06 |= Arg0
+ }
+ }
+
+ Method (GMLV, 0, NotSerialized)
+ {
+ Return (\GP06)
+ }
+}