soc/amd/stoneyridge: Record ACPI Wake events in ELOG
We are already reporting the Wake source, but we must also report the ACPI wake itself. BUG=b:79865267 TEST=firmware_EventLog Change-Id: Id26dff46379800a63ab9b77f135d23c6382f77e6 Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-on: https://review.coreboot.org/26522 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
9b26127a45
commit
b6fdd22456
|
@ -669,6 +669,10 @@ static void sb_log_pm1_status(uint16_t pm1_sts)
|
|||
if (!IS_ENABLED(CONFIG_ELOG))
|
||||
return;
|
||||
|
||||
if (pm1_sts & WAK_STS)
|
||||
elog_add_event_byte(ELOG_TYPE_ACPI_WAKE,
|
||||
acpi_is_wakeup_s3() ? ACPI_S3 : ACPI_S5);
|
||||
|
||||
if (pm1_sts & PWRBTN_STS)
|
||||
elog_add_event_wake(ELOG_WAKE_SOURCE_PWRBTN, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue