Skip to content

Commit 689a323

Browse files
committed
mb/novacustom/nuc_box/acpi/sleep.asl: fix USB S3 wake
Fixes ACPI code for proper S3 handling and USB wake enablement Upstream-Status: Pending Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
1 parent b30597a commit 689a323

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

  • src/mainboard/novacustom/nuc_box/acpi
Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22

3+
#include <intelblocks/gpio.h>
4+
5+
/*
6+
* Enable/disable dynamic clock gating for all GPIO communities.
7+
* Arg0 - MISCCFG_GPIO_PM_CONFIG_BITS to enable, 0 to disable.
8+
*/
9+
Method (PGPM, 1, Serialized)
10+
{
11+
For (Local0 = 0, Local0 < 6, Local0++)
12+
{
13+
\_SB.PCI0.CGPM (Local0, Arg0)
14+
}
15+
}
16+
317
/* Method called from _PTS prior to enter sleep state */
4-
Method (MPTS, 1) {
18+
Method (MPTS, 1, Serialized) {
19+
PGPM (MISCCFG_GPIO_PM_CONFIG_BITS)
520
\_SB.SIO.PTS()
621
}
722

823
/* Method called from _WAK prior to wakeup */
9-
Method (MWAK, 1) {
24+
Method (MWAK, 1, Serialized) {
1025
\_SB.SIO.WAK()
26+
PGPM (0)
27+
If (CondRefOf (\_SB.PCI0.TXHC)) {
28+
\_SB.TCWK (Arg0)
29+
}
1130
}

0 commit comments

Comments
 (0)