soc/intel/meteorlake: Add support for USB wake up
Add the same wakeup method that Alder Lake uses to Meteor Lake. Test=boot `starlabs/starbook/mtl` and check USB devices can wake. Change-Id: I67da6af619db947ab4830fa2d9904f3e70fbfd21 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86628 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
abd0f60298
commit
b033367e61
1 changed files with 17 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
#include <soc/gpe.h>
|
||||
|
||||
/* Include UWES method for enabling USB wake */
|
||||
#include <soc/intel/common/acpi/xhci_wake.asl>
|
||||
|
||||
/* XHCI Controller 0:14.0 */
|
||||
|
||||
Device (XHCI)
|
||||
|
|
@ -10,6 +13,20 @@ Device (XHCI)
|
|||
|
||||
Name (_PRW, Package () { GPE0_PME_B0, 3 })
|
||||
|
||||
OperationRegion (XPRT, PCI_Config, 0x00, 0x100)
|
||||
Field (XPRT, AnyAcc, NoLock, Preserve)
|
||||
{
|
||||
Offset (0x10),
|
||||
, 16,
|
||||
XMEM, 16, /* MEM_BASE */
|
||||
}
|
||||
|
||||
Method (_DSW, 3)
|
||||
{
|
||||
UWES ((\U2WE & 0xFFF), PORTSCN_OFFSET, XMEM)
|
||||
UWES ((\U3WE & 0x3F ), PORTSCXUSB3_OFFSET, XMEM)
|
||||
}
|
||||
|
||||
Name (_S3D, 3) /* D3 supported in S3 */
|
||||
Name (_S0W, 3) /* D3 can wake device in S0 */
|
||||
Name (_S3W, 3) /* D3 can wake system from S3 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue