samus: Enable WLAN wake GPIO in _PRW
Add ACPI device for WLAN and enable GPIO 10 as wake source in _PRW. BUG=chrome-os-partner:28234,chrome-os-partner:30671 BRANCH=None TEST=boot on samus, check for WLAN in /proc/acpi/wakeup Change-Id: I09b6eeae5bd88ee9d7e0b7e735ed871e8ae6963a Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/211820 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
3f59b13d61
commit
c65ce028e6
1 changed files with 24 additions and 0 deletions
|
|
@ -70,6 +70,30 @@ Scope (\_SB)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* WLAN connected to Root Port 3, becomes Root Port 1 after coalesce
|
||||
*/
|
||||
Scope (\_SB.PCI0.RP01)
|
||||
{
|
||||
Device (WLAN)
|
||||
{
|
||||
Name (_ADR, 0x00000000)
|
||||
|
||||
/* GPIO10 is PCH_WLAN_WAKE_L */
|
||||
Name (GPIO, 10)
|
||||
|
||||
Name (_PRW, Package() { GPIO, 3 })
|
||||
|
||||
Method (_DSW, 3, NotSerialized)
|
||||
{
|
||||
If (LEqual (Arg0, 1)) {
|
||||
// Enable GPIO as wake source
|
||||
\_SB.PCI0.LPCB.GPIO.GWAK (^GPIO)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Scope (\_SB.PCI0.I2C0)
|
||||
{
|
||||
Device (ATPB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue