• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <mainboard/google/jecht/onboard.h>
4
5/*
6 * LAN connected to Root Port 3, becomes Root Port 1 after coalesce
7 */
8Scope (\_SB.PCI0.RP01)
9{
10	Device (ETH0)
11	{
12		Name (_ADR, 0x00000000)
13		Name (_PRW, Package() { JECHT_NIC_WAKE_GPIO, 3 })
14
15		Method (_DSW, 3, NotSerialized)
16		{
17			Local0 = JECHT_NIC_WAKE_GPIO
18
19			If (Arg0 == 1) {
20				// Enable GPIO as wake source
21				\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
22			}
23		}
24	}
25}
26
27/*
28 * WLAN connected to Root Port 4, becomes Root Port 2 after coalesce
29 */
30Scope (\_SB.PCI0.RP02)
31{
32	Device (WLAN)
33	{
34		Name (_ADR, 0x00000000)
35		Name (_PRW, Package() { JECHT_WLAN_WAKE_GPIO, 3 })
36
37		Method (_DSW, 3, NotSerialized)
38		{
39			Local0 = JECHT_WLAN_WAKE_GPIO
40
41			If (Arg0 == 1) {
42				// Enable GPIO as wake source
43				\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
44			}
45		}
46	}
47}
48
49/* USB port entries */
50#include <variant/acpi/usb.asl>
51