summaryrefslogtreecommitdiff
path: root/src/mainboard/system76/tgl-u
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2022-12-05 08:49:46 -0700
committerFelix Held <felix-coreboot@felixheld.de>2023-03-04 01:59:36 +0000
commit1f81af52a4efde39ba0127b724c6c2e19d0329cd (patch)
tree090f8e9d9112307cdff8aacb5d7a4c837359f0c1 /src/mainboard/system76/tgl-u
parentd5d56b3d42efeeebde9a8867d95e21d7b698aa18 (diff)
mb/system76: Add custom backlight levels for Intel GMA
Add custom backlight levels for all models except: - addw1/addw2: Uses an OLED display - bonw14: Does not use the iGPU Change-Id: Ibea37f19acca0d718211fc41706019a92a240c70 Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61301 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jeremy Soller <jeremy@system76.com>
Diffstat (limited to 'src/mainboard/system76/tgl-u')
-rw-r--r--src/mainboard/system76/tgl-u/acpi/backlight.asl31
-rw-r--r--src/mainboard/system76/tgl-u/acpi/mainboard.asl3
-rw-r--r--src/mainboard/system76/tgl-u/dsdt.asl1
3 files changed, 34 insertions, 1 deletions
diff --git a/src/mainboard/system76/tgl-u/acpi/backlight.asl b/src/mainboard/system76/tgl-u/acpi/backlight.asl
new file mode 100644
index 0000000000..f020234450
--- /dev/null
+++ b/src/mainboard/system76/tgl-u/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/tgl-u/acpi/mainboard.asl b/src/mainboard/system76/tgl-u/acpi/mainboard.asl
index 4675bc94b8..c982a9ee4c 100644
--- a/src/mainboard/system76/tgl-u/acpi/mainboard.asl
+++ b/src/mainboard/system76/tgl-u/acpi/mainboard.asl
@@ -6,4 +6,7 @@
Scope (\_SB) {
#include "sleep.asl"
+ Scope (PCI0) {
+ #include "backlight.asl"
+ }
}
diff --git a/src/mainboard/system76/tgl-u/dsdt.asl b/src/mainboard/system76/tgl-u/dsdt.asl
index fb40a5d67f..904073cc7d 100644
--- a/src/mainboard/system76/tgl-u/dsdt.asl
+++ b/src/mainboard/system76/tgl-u/dsdt.asl
@@ -20,7 +20,6 @@ DefinitionBlock(
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
#include <soc/intel/tigerlake/acpi/southbridge.asl>
#include <soc/intel/tigerlake/acpi/tcss.asl>
- #include <drivers/intel/gma/acpi/default_brightness_levels.asl>
}
#include <southbridge/intel/common/acpi/sleepstates.asl>