From c65ce028e64aebffb99648b2c34c4ff0e7c4e70f Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 11 Aug 2014 08:06:04 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/211820 Reviewed-by: Aaron Durbin --- src/mainboard/google/samus/acpi/mainboard.asl | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/mainboard/google/samus/acpi/mainboard.asl b/src/mainboard/google/samus/acpi/mainboard.asl index 3aea40c63f..adcc1908c0 100644 --- a/src/mainboard/google/samus/acpi/mainboard.asl +++ b/src/mainboard/google/samus/acpi/mainboard.asl @@ -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)