Angel Pons | 58c0d32 | 2020-04-05 13:20:46 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Marc Jones | 07cf24c | 2015-06-09 14:42:55 -0600 | [diff] [blame] | 2 | |
Matt DeVillier | 45e11aa | 2016-12-18 11:59:58 -0600 | [diff] [blame] | 3 | #include <variant/onboard.h> |
Marc Jones | 07cf24c | 2015-06-09 14:42:55 -0600 | [diff] [blame] | 4 | |
Matt DeVillier | a82f991 | 2018-12-29 21:43:11 -0600 | [diff] [blame] | 5 | /* |
6 | * WLAN on Buddy connected to RP4, becomes RP2 after coalesce | ||||
7 | */ | ||||
8 | #if CONFIG(BOARD_GOOGLE_BUDDY) | ||||
9 | Scope (\_SB.PCI0.RP02) | ||||
10 | #else | ||||
Marc Jones | d862121 | 2015-06-09 21:18:38 -0600 | [diff] [blame] | 11 | Scope (\_SB.PCI0.RP01) |
Matt DeVillier | a82f991 | 2018-12-29 21:43:11 -0600 | [diff] [blame] | 12 | #endif |
Marc Jones | d862121 | 2015-06-09 21:18:38 -0600 | [diff] [blame] | 13 | { |
14 | Device (WLAN) | ||||
15 | { | ||||
16 | Name (_ADR, 0x00000000) | ||||
17 | |||||
Matt DeVillier | 45e11aa | 2016-12-18 11:59:58 -0600 | [diff] [blame] | 18 | Name (_PRW, Package() { BOARD_WLAN_WAKE_GPIO, 3 }) |
Marc Jones | d862121 | 2015-06-09 21:18:38 -0600 | [diff] [blame] | 19 | |
20 | Method (_DSW, 3, NotSerialized) | ||||
21 | { | ||||
Elyes HAOUAS | 9c19a4f | 2020-10-08 09:30:03 +0200 | [diff] [blame^] | 22 | Local0 = BOARD_WLAN_WAKE_GPIO |
23 | If (Arg0 == 1) { | ||||
Marc Jones | d862121 | 2015-06-09 21:18:38 -0600 | [diff] [blame] | 24 | // Enable GPIO as wake source |
Matt DeVillier | 45e11aa | 2016-12-18 11:59:58 -0600 | [diff] [blame] | 25 | \_SB.PCI0.LPCB.GPIO.GWAK (Local0) |
Marc Jones | 07cf24c | 2015-06-09 14:42:55 -0600 | [diff] [blame] | 26 | } |
27 | } | ||||
28 | } | ||||
29 | } | ||||
Matt DeVillier | 45e11aa | 2016-12-18 11:59:58 -0600 | [diff] [blame] | 30 | |
31 | #include <variant/acpi/mainboard.asl> | ||||
Matt DeVillier | 3c3c7a1 | 2017-04-17 18:38:31 -0500 | [diff] [blame] | 32 | |
33 | /* USB port entries */ | ||||
34 | #include <variant/acpi/usb.asl> |