John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40425 )
Change subject: mb/google/volteer: Add support for USB Type-C ports
......................................................................
mb/google/volteer: Add support for USB Type-C ports
Two usb type-c ports under the actual Mux device. Each port has
its own ACPI device entry (node). These nodes are the ones that
the USB Type-C port/connnector devices will refer to in order
to configure the mux.
BUG=b:151646486
BRANCH=None
TEST=Verify USB Type-C alternate mode (DP or TBT) along wth PMC control.
Change-Id: I4b443a1ca1c5361652a69586b340b1c95e9c3f06
Signed-off-by: John Zhao <john.zhao(a)intel.com>
---
A src/mainboard/google/volteer/acpi/usbc.asl
M src/mainboard/google/volteer/dsdt.asl
2 files changed, 46 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/40425/1
diff --git a/src/mainboard/google/volteer/acpi/usbc.asl b/src/mainboard/google/volteer/acpi/usbc.asl
new file mode 100644
index 0000000..b185b2f
--- /dev/null
+++ b/src/mainboard/google/volteer/acpi/usbc.asl
@@ -0,0 +1,43 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
+Scope (\_SB.PCI0.PMC.MUX) {
+ /*
+ * Mux driver looks for usb type-C devices underneath it through
+ * _DSD and _ADR, where _ADR specifies the device address on the
+ * parent bus. CON0 is representing the first type-C port and CON1
+ * is representing the second.
+ */
+ Device (CON0)
+ {
+ Name (_ADR, 0)
+ /*
+ * These properties should have the values that the driver needs
+ * to supply to the PMC via IPC when the muxes are being
+ * configured.
+ */
+ Name (_DSD, Package () {
+ ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package() {
+ Package () { "usb2-port", 6 },
+ Package () { "usb3-port", 3 },
+ Package () { "sbu-orientation", "normal" },
+ Package () { "hsl-orientation", "normal" },
+ },
+ })
+ }
+
+ Device (CON1)
+ {
+ Name (_ADR, 1)
+ Name (_DSD, Package () {
+ ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package() {
+ Package () { "usb2-port", 5 },
+ Package () { "usb3-port", 2 },
+ Package () { "sbu-orientation", "normal" },
+ Package () { "hsl-orientation", "normal" },
+ },
+ })
+ }
+}
diff --git a/src/mainboard/google/volteer/dsdt.asl b/src/mainboard/google/volteer/dsdt.asl
index 640f7cd..1888267 100644
--- a/src/mainboard/google/volteer/dsdt.asl
+++ b/src/mainboard/google/volteer/dsdt.asl
@@ -50,4 +50,7 @@
/* Camera */
#include <soc/intel/tigerlake/acpi/ipu.asl>
#include "acpi/mipi_camera.asl"
+
+ /* usbc */
+ #include "acpi/usbc.asl"
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/40425
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4b443a1ca1c5361652a69586b340b1c95e9c3f06
Gerrit-Change-Number: 40425
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newchange
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45478 )
Change subject: [UNTESTED]cpu/x86/mp_init.c: Print out the SMM save state revision when relocating
......................................................................
[UNTESTED]cpu/x86/mp_init.c: Print out the SMM save state revision when relocating
This can be used to determine the save state revision of a CPU.
Change-Id: I751d226a9de60f5dd03fd2bcb8c473bdbd5923a0
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/cpu/x86/mp_init.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/45478/1
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index caed8f4..3a48f1a 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -721,6 +721,8 @@
return;
}
+ printk(BIOS_DEBUG, "SMM save state revision: 0x%x\n", smm_revision());
+
/*
* The permanent handler runs with all cpus concurrently. Precalculate
* the location of the new SMBASE. If using SMM modules then this
--
To view, visit https://review.coreboot.org/c/coreboot/+/45478
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I751d226a9de60f5dd03fd2bcb8c473bdbd5923a0
Gerrit-Change-Number: 45478
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange