broadwell: Add support for ACPI \_GPE._SWS

Hardware / Coreboot - Duncan Laurie [chromium.org] - 10 April 2015 12:22 UTC

In order to report the GPE that woke the system to the kernel coreboot needs to keep track of the first GPE wake source and save it in NVS so it can be returned in \_GPE._SWS method.

This is similar to the saving of PM1 status but needs to go through all the GPE0_STS registers and check for enabled and triggered events.

A bit of cleanup is done for areas that were touched:- platform.asl was not formatted correctly

BUG=chrome-os-partner:8127 BRANCH=samus,auron TEST=manual:- suspend/resume and wake from EC event like keyboard: ACPI _SWS is PM1 Index -1 GPE Index 112 ("special" GPIO27)- suspend/resume and wake from RTC event: ACPI _SWS is PM1 Index 10 GPE Index -1 (RTC)- suspend/resume and wake from power button: ACPI _SWS is PM1 Index 8 GPE Index -1- suspend/resume and wake from touchpad: ACPI _SWS is PM1 Index -1 GPE Index 13- suspend/resume and wake from WLAN: ACPI _SWS is PM1 Index -1 GPE Index 10

Change-Id: I574f8cd83c8bb42f420e1a00e71a23aa23195f53

1fad694 broadwell: Add support for ACPI \_GPE._SWS
src/soc/intel/broadwell/acpi/globalnvs.asl | 1 +
src/soc/intel/broadwell/acpi/platform.asl | 35 +++++++++++++++++++---------
src/soc/intel/broadwell/include/soc/nvs.h | 3 ++-
src/soc/intel/broadwell/include/soc/pm.h | 2 ++
src/soc/intel/broadwell/ramstage.c | 33 ++++++++++++++++++++++----
5 files changed, 57 insertions(+), 17 deletions(-)

Upstream: review.coreboot.org


  • Share