Vaibhav Shankar (vaibhav.shankar@intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16611
-gerrit
commit ff6e1547c97c3b2bdd3913fc31df0f15da014e50 Author: Vaibhav Shankar vaibhav.shankar@intel.com Date: Thu Sep 15 14:02:54 2016 -0700
mainboard/google/reef: Configure WLAN as wake source
This implements PRW method for WLAN and configure GPIO_205 to generate SCI.
BUG=chrome-os-partner:56483 TEST=Suspend the system into S3 or S0ix. System should resume through wake event from wifi.
Change-Id: I9bd078c2de19ebcc652b5d981997d2a5b5f0b1b7 Signed-off-by: Vaibhav Shankar vaibhav.shankar@intel.com --- src/mainboard/google/reef/acpi/mainboard.asl | 12 ++++++++++++ src/mainboard/google/reef/variants/baseboard/gpio.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/mainboard/google/reef/acpi/mainboard.asl b/src/mainboard/google/reef/acpi/mainboard.asl index 0b2fdc8..5e8cd85 100644 --- a/src/mainboard/google/reef/acpi/mainboard.asl +++ b/src/mainboard/google/reef/acpi/mainboard.asl @@ -40,3 +40,15 @@ Scope (_SB.PCI0.LPCB) #include "superio.asl" #include "ec.asl" } + +Scope (_SB.PCI0.RP01) +{ + Device (WLAN) + { + Name (_ADR, 0x00000000) + Name (_DDN, "Wireless LAN") + + /* Configure PCIE_WAKE_0 as wake source */ + Name (_PRW, Package() { GPE0_DW3_00, 0x3 }) + } +} diff --git a/src/mainboard/google/reef/variants/baseboard/gpio.c b/src/mainboard/google/reef/variants/baseboard/gpio.c index eb1b2eb..7d74140c 100644 --- a/src/mainboard/google/reef/variants/baseboard/gpio.c +++ b/src/mainboard/google/reef/variants/baseboard/gpio.c @@ -24,7 +24,7 @@ */ static const struct pad_config gpio_table[] = { /* PCIE_WAKE[0:3]_N */ - PAD_CFG_NF(GPIO_205, UP_20K, DEEP, NF1), /* WLAN */ + PAD_CFG_GPI_SCI_LOW(GPIO_205, UP_20K, DEEP, EDGE_SINGLE), /* WLAN */ PAD_CFG_GPI(GPIO_206, UP_20K, DEEP), /* Unused */ PAD_CFG_GPI(GPIO_207, UP_20K, DEEP), /* Unused */ PAD_CFG_GPI(GPIO_208, UP_20K, DEEP), /* Unused */