This patch adds a power management utility function to clear wake status bits in ACPI GPE0 registers. We need to call this function before going to sleep from common smi handler function.
BUG=chrome-os-partner:55583 BRANCH=None TEST=Verified that system goes to sleep on lidclose and powerd_dbus_suspend command issued from built-in keyboard.
Change-Id: Icd095d377c82f2e154f2e2db773f737aa49cda64
d6bb549 intel/apollolake: Add power management utility function
src/soc/intel/apollolake/include/soc/pm.h | 1 +
src/soc/intel/apollolake/pmutil.c | 10 ++++++++++
2 files changed, 11 insertions(+)
Upstream: review.coreboot.org