From 82dd1fc5a1a2ae545cd59bf06e0fdcf2fef610f1 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 26 Jun 2019 10:03:18 -0600 Subject: [PATCH] Add device specific data for thunderbolt --- .../system76/whl-u/acpi/mainboard.asl | 2 + src/mainboard/system76/whl-u/acpi/tbt.asl | 42 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 src/mainboard/system76/whl-u/acpi/tbt.asl diff --git a/src/mainboard/system76/whl-u/acpi/mainboard.asl b/src/mainboard/system76/whl-u/acpi/mainboard.asl index caf6688d6d..e77518f728 100644 --- a/src/mainboard/system76/whl-u/acpi/mainboard.asl +++ b/src/mainboard/system76/whl-u/acpi/mainboard.asl @@ -22,6 +22,8 @@ Scope (\_SB) { #include "s76.asl" } +#include "tbt.asl" + Scope (_GPE) { #include "gpe.asl" } diff --git a/src/mainboard/system76/whl-u/acpi/tbt.asl b/src/mainboard/system76/whl-u/acpi/tbt.asl new file mode 100644 index 0000000000..cdf98cc350 --- /dev/null +++ b/src/mainboard/system76/whl-u/acpi/tbt.asl @@ -0,0 +1,42 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2019 System76 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +// See https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports +Scope(\_SB.PCI0.RP05) { + Method(_DSD, 0, NotSerialized) { + Return (Package(4) { + // https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports#identifying-pcie-root-ports-supporting-hot-plug-in-d3 + ToUUID("6211e2c0-58a3-4af3-90e1-927a4e0c55a4"), + Package(1) { + Package(2) { + "HotPlugSupportInD3", + 1 + } + }, + // https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports#identifying-externally-exposed-pcie-root-ports + ToUUID("efcc06cc-73ac-4bc3-bff0-76143807c389"), + Package(2) { + Package(2) { + "ExternalFacingPort", + 1 + }, + Package(2) { + "UID", + 0 + } + } + }) + } +}