Skip to content

Commit b30597a

Browse files
committed
mb/novacustom/nuc_box/dsdt.asl: fixes for ghost PS/2 and USB wake
Upstream-Status: Pending Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
1 parent 1f6972d commit b30597a

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

src/mainboard/novacustom/nuc_box/dsdt.asl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
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>
74
DefinitionBlock(
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
}

src/mainboard/novacustom/nuc_box/variants/nuc_box/overridetree.cb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 */

src/soc/intel/meteorlake/acpi/xhci.asl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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

711
Device (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 */

0 commit comments

Comments
 (0)