ec/google/chromeec: Handle ACPI S4 in chromeec_smi_sleep()

While Chromebook hardware originally would not have the
capacity to do suspend-to-disk (ACPI S4), the power management
code in EC should react to S4 request as if it was S5 request.

Change-Id: Ida9118919c8149d94f470847d0c4aad9c0b97d3e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74823
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki 2023-01-05 18:12:57 +02:00
parent 4aa8593ecc
commit 497fea7d67
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ void chromeec_smi_sleep(int slp_type, uint64_t s3_mask, uint64_t s5_mask)
/* Enable wake events */
google_chromeec_set_wake_mask(s3_mask);
break;
case ACPI_S4:
case ACPI_S5:
/* Enable wake events */
google_chromeec_set_wake_mask(s5_mask);