From 1f81af52a4efde39ba0127b724c6c2e19d0329cd Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Mon, 5 Dec 2022 08:49:46 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61301 Tested-by: build bot (Jenkins) Reviewed-by: Jeremy Soller --- src/mainboard/system76/kbl-u/acpi/backlight.asl | 31 +++++++++++++++++++++++++ src/mainboard/system76/kbl-u/acpi/mainboard.asl | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 src/mainboard/system76/kbl-u/acpi/backlight.asl (limited to 'src/mainboard/system76/kbl-u/acpi') diff --git a/src/mainboard/system76/kbl-u/acpi/backlight.asl b/src/mainboard/system76/kbl-u/acpi/backlight.asl new file mode 100644 index 0000000000..f020234450 --- /dev/null +++ b/src/mainboard/system76/kbl-u/acpi/backlight.asl @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +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/kbl-u/acpi/mainboard.asl b/src/mainboard/system76/kbl-u/acpi/mainboard.asl index 11735e8e01..a36923f467 100644 --- a/src/mainboard/system76/kbl-u/acpi/mainboard.asl +++ b/src/mainboard/system76/kbl-u/acpi/mainboard.asl @@ -1,6 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */ Scope (\_SB) { + Scope (PCI0) { + #include "backlight.asl" + } + #include "ac.asl" #include "battery.asl" #include "buttons.asl" -- cgit v1.2.3