mb/google/poppy: add the smi_events back
commit2ce56f152367de3b717658a1e848c4c1da2e23f0
authorZhuohao Lee <zhuohao@chromium.org>
Fri, 19 Oct 2018 08:50:02 +0000 (19 16:50 +0800)
committerFurquan Shaikh <furquan@google.com>
Tue, 23 Oct 2018 19:58:19 +0000 (23 19:58 +0000)
tree2c1a450f512f32cb3fff8e206589e61e8e69142e
parenta342f3937e7ce159fd170ab8cd26ba799a3bc9e4
mb/google/poppy: add the smi_events back

Before entering the OS, the AP relies on the smi handler to shutdown the
system when the lid closes. Without the smi_events setting, the AP will
not receive the smi handler. As a result, the AP won't shutdown and will
always keep in S0.
This problem is caused by the https://review.coreboot.org/c/coreboot/+/28983
and this patch adds the smi_events back to support the smi handler for
the lid close.

BRANCH=master
BUG=b:115572596
TEST=test_that -b ${BOARD} ${IP} firmware_ECLidShutdown

Change-Id: Id82311a8ccd109f9c26516f59a45bdf34da98529
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://review.coreboot.org/29191
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
src/mainboard/google/poppy/ec.c
src/mainboard/google/poppy/variants/nocturne/ec.c