aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/tigerlake/acpi/tcss_dma.asl
diff options
context:
space:
mode:
authorJohn Zhao <john.zhao@intel.com>2020-06-11 18:05:23 -0700
committerTim Wawrzynczak <twawrzynczak@chromium.org>2020-06-19 21:55:32 +0000
commitb8febf44d1502149cf759286dfe020f45c307be6 (patch)
treed74cdabac5571ebd99544a3917007cc434cb8337 /src/soc/intel/tigerlake/acpi/tcss_dma.asl
parent277e11b3906f79123b54c21facd7a41d18bdcb0d (diff)
soc/intel/tigerlake: Update TCSS for SW CM support
This change adds support for SW CM. Add Operating System Capabilities (_OSC) method to enable USB/DisplayPort/Inter-domain USB4 Internet Protocol tunneling and enable PCIe tunneling as well. Remove Connect Topology(CNTP) command because kernel driver directly works with SW CM Thunderbolt firmware. Update _DSD method for USB4 support across XHCI and PCIe root ports. BUG=b:140645231 TEST=Check Type C device all ports connection/enumeration with SW CM. Signed-off-by: John Zhao <john.zhao@intel.com> Change-Id: I859c5075882e40d7be30d4ba88cc825886712b74 Reviewed-on: https://review.coreboot.org/c/coreboot/+/42295 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/tigerlake/acpi/tcss_dma.asl')
-rw-r--r--src/soc/intel/tigerlake/acpi/tcss_dma.asl112
1 files changed, 0 insertions, 112 deletions
diff --git a/src/soc/intel/tigerlake/acpi/tcss_dma.asl b/src/soc/intel/tigerlake/acpi/tcss_dma.asl
index 66950a6904..8eab92f22e 100644
--- a/src/soc/intel/tigerlake/acpi/tcss_dma.asl
+++ b/src/soc/intel/tigerlake/acpi/tcss_dma.asl
@@ -26,118 +26,7 @@ Field (DPME, AnyAcc, NoLock, Preserve)
DMAD, 8 /* 31:24 DMA Active Delay */
}
-/*
- * TBT MailBox Command Method
- * Arg0 - MailBox Cmd ID
- */
-Method (ITMB, 1, Serialized)
-{
- Local0 = Arg0 | 0x1 /* 0x1, PCIE2TBT_VLD_B */
- P2TB = Local0
-}
-
-/*
- * Wait For Command Completed
- * Arg0 - TimeOut value (unit is 1 millisecond)
- */
-Method (WFCC, 1, Serialized)
-{
- WTBS (Arg0)
- P2TB = 0
- WTBC (Arg0)
-}
-
-/*
- * Wait For Command Set
- * Arg0 - TimeOut value
- */
-Method (WTBS, 1, Serialized)
-{
- Local0 = Arg0
- While (Local0 > 0) {
- /* Wait for Bit to Set. */
- If (TB2P & 0x1) { /* 0x1, TBT2PCIE_DON_R */
- Break
- }
- Local0--
- Sleep (1)
- }
-}
-
-/*
- * Wait For Command Clear
- * Arg0 - TimeOut value
- */
-Method (WTBC, 1, Serialized)
-{
- Local0 = Arg0
- While (Local0 > 0) {
- /* Wait for Bit to Clear. */
- If ((TB2P & 0x1) != 0x0) { /* 0x1, TBT2PCIE_DON_R */
- Break
- }
- Local0--
- Sleep (1)
- }
-}
-
-/*
- * TCSS TBT CONNECT_TOPOLOGY MailBox Command Method
- */
-Method (CNTP, 0, Serialized)
-{
- Local0 = 0
- /* Set Force Power if it is not set */
- If (DFPE == 0) {
- DMAD = 0x22
- DFPE = 1
- /*
- * Poll the TBT NVM FW Ready bit with timeout(default is 500ms) before
- * send the TBT MailBox command.
- */
- While ((INFR == 0) && (Local0 < 500)) {
- Sleep (1)
- Local0++
- }
- }
- If (Local0 != 100) {
- ITMB (0x3E) /* 0x3E, PCIE2TBT_CONNECT_TOPOLOGY_COMMAND */
- }
-}
-
Name (STAT, 0x1) /* Variable to save power state 1 - D0, 0 - D3C */
-Name (ALCT, 0x0) /* Connect-Topology cmd can be sent or not 1 - yes, 0 - no */
-/*
- * Wait Connect-Topology cmd done
- * 0 - no need to wait
- * 1 - need to wait
- * 2 - wait in progress
- */
-Name (WACT, 0x0)
-
-Method (_PS0, 0, Serialized)
-{
- If (WACT == 1) {
- /*
- * PCIe rp0/rp1 is grouped with DMA0 and PCIe rp2/rp3 is grouped wit DMA1.
- * Whenever the Connect-Topology command is in the process, WACT flag is set 1.
- * PCIe root ports 0/1/2/3/ and DMA 0/1 _PS0 method set WACT to 2 to indicate
- * other thread's _PS0 to wait for the command completion. WACT is cleared to
- * be 0 after command is finished.
- */
- WACT = 2
- WFCC (100) /* Wait for command complete. */
- WACT = 0
- } ElseIf (WACT == 2) {
- While (WACT != 0) {
- Sleep (5)
- }
- }
-}
-
-Method (_PS3, 0, Serialized)
-{
-}
Method (_S0W, 0x0)
{
@@ -178,7 +67,6 @@ Method (D3CE, 0, Serialized)
{
DD3E = 1 /* Enable DMA RTD3 */
STAT = 0
- ALCT = 0x1 /* Allow to send Connect-Topology cmd. */
}
/*