From 8b17b9b1967c5299c021cb65e9322668ad32b9cc Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Wed, 22 May 2024 10:43:43 -0600 Subject: mb/system76/mtl: Add Darter Pro 10 The Darter Pro 10 (darp10) is an Intel Meteor Lake-H based board. There are 2 variants to differentiate them as they have different keyboards and so use different EC firmware. - darp10: 16" model with 102 key keyboard - darp10-b: 14" model with 83 key keyboard Change-Id: Iaef03a47cf108591ef823bfa779777c7c05c6337 Signed-off-by: Tim Crawford Reviewed-on: https://review.coreboot.org/c/coreboot/+/82609 Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) --- src/mainboard/system76/mtl/acpi/backlight.asl | 31 +++++++++++++++++++++++++++ src/mainboard/system76/mtl/acpi/mainboard.asl | 12 +++++++++++ src/mainboard/system76/mtl/acpi/sleep.asl | 9 ++++++++ 3 files changed, 52 insertions(+) create mode 100644 src/mainboard/system76/mtl/acpi/backlight.asl create mode 100644 src/mainboard/system76/mtl/acpi/mainboard.asl create mode 100644 src/mainboard/system76/mtl/acpi/sleep.asl (limited to 'src/mainboard/system76/mtl/acpi') diff --git a/src/mainboard/system76/mtl/acpi/backlight.asl b/src/mainboard/system76/mtl/acpi/backlight.asl new file mode 100644 index 0000000000..053ce57b5d --- /dev/null +++ b/src/mainboard/system76/mtl/acpi/backlight.asl @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include + +Scope (GFX0) +{ + Name (BRIG, Package (22) { + 100, /* default AC */ + 100, /* 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/mtl/acpi/mainboard.asl b/src/mainboard/system76/mtl/acpi/mainboard.asl new file mode 100644 index 0000000000..c982a9ee4c --- /dev/null +++ b/src/mainboard/system76/mtl/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 + +Scope (\_SB) { + #include "sleep.asl" + Scope (PCI0) { + #include "backlight.asl" + } +} diff --git a/src/mainboard/system76/mtl/acpi/sleep.asl b/src/mainboard/system76/mtl/acpi/sleep.asl new file mode 100644 index 0000000000..8a2a22c55b --- /dev/null +++ b/src/mainboard/system76/mtl/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() + } +} -- cgit v1.2.3