soc/intel/tigerlake: Add Hot-Plug and PME event handlers for Thunderbolt
commitf74aa649b1be2ea7e9d4e25d6072fb7dc7f9f903
authorJohn Zhao <john.zhao@intel.com>
Sun, 7 Jun 2020 16:20:01 +0000 (7 09:20 -0700)
committerDuncan Laurie <dlaurie@chromium.org>
Wed, 10 Jun 2020 17:27:02 +0000 (10 17:27 +0000)
treeadf94f3fdf027c8a0a019cbc09222484e25a48e2
parenta6e3b5ac093a4d9781fc83b75a14d1c47b92b6ef
soc/intel/tigerlake: Add Hot-Plug and PME event handlers for Thunderbolt

This change adds Hot-Plug and power management event handers(_L61 &
_L69) respectively for Thunderbolt in the GPE scope. The _L61 method
invokes sub-method HPEV to support Hot-Plug wake event from Thunderbolt
PCIe root ports. This method intercepts Presence Detect Changed
interrupt and make sure the L0s is disabled on empty slots. The _L69
method checks and clears root port's PME SCI status.

BUG=b:156435065
TEST=Verified multiple hot plug successfully with Lenovo dock.

Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: I022cf4aa3f2ee459b9dc87849494e10755d995c8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42149
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
src/soc/intel/tigerlake/acpi/tcss.asl