File tree Expand file tree Collapse file tree
mainboard/novacustom/nuc_box
soc/intel/meteorlake/acpi Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/* SPDX-License-Identifier: GPL-2.0-only */
22
3- //TODO: HACK FOR MISSING MISCCFG_GPIO_PM_CONFIG_BITS
4- #include <soc/gpio.h>
5-
63#include <acpi/acpi.h>
74DefinitionBlock (
85 "dsdt.aml" ,
@@ -27,10 +24,5 @@ DefinitionBlock(
2724
2825 #include <southbridge/intel/common/acpi/sleepstates.asl>
2926
30- Scope (\_SB .PCI0.LPCB)
31- {
32- #include <drivers/pc80/pc/ps2_controller.asl>
33- }
34-
3527 #include "acpi/mainboard.asl"
3628}
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ chip soc/intel/meteorlake
3030 end
3131 device ref tcss_dma0 on end
3232 device ref xhci on
33+ register "usb2_wake_enable_bitmap" = "0xFF"
34+ register "usb3_wake_enable_bitmap" = "0x3"
3335 register "usb2_ports" = "{
3436 [0] = USB2_PORT_MID(OC_SKIP), /* USB3 Rear */
3537 [1] = USB2_PORT_MID(OC_SKIP), /* USB3 Rear */
Original file line number Diff line number Diff line change 11/* SPDX-License-Identifier: GPL-2.0-only */
22
3+ #include <intelblocks/xhci.h>
34#include <soc/gpe.h>
45
6+ /* Include UWES method for enabling USB wake */
7+ #include <soc/intel/common/acpi/xhci_wake.asl>
8+
59/* XHCI Controller 0:14.0 */
610
711Device (XHCI)
@@ -10,6 +14,20 @@ Device (XHCI)
1014
1115 Name (_PRW , Package () { GPE0_PME_B0, 3 })
1216
17+ OperationRegion (XPRT, PCI_Config , 0x00 , 0x100 )
18+ Field (XPRT, AnyAcc , NoLock , Preserve )
19+ {
20+ Offset (0x10 ),
21+ , 16,
22+ XMEM, 16, /* MEM_BASE */
23+ }
24+
25+ Method (_DSW , 3 )
26+ {
27+ UWES ((\U2WE & 0x3FF ), PORTSCN_OFFSET, XMEM)
28+ UWES ((\U3WE & 0x3 ), PORTSCXUSB3_OFFSET, XMEM)
29+ }
30+
1331 Name (_S3D , 3 ) /* D3 supported in S3 */
1432 Name (_S0W, 3 ) /* D3 can wake device in S0 */
1533 Name (_S3W , 3 ) /* D3 can wake system from S3 */
You can’t perform that action at this time.
0 commit comments