diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-01-05 18:12:57 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-08-16 18:07:59 +0000 |
commit | b470624c74257f3fdffc793455dbf0f984e0b89f (patch) | |
tree | f5b40906e0ef9ced251f389a85d22d36ae7e86d1 /src/mainboard/intel/strago | |
parent | d84ace50e35d60fe29e6718c33dd7e1e5ea937bd (diff) |
mb/google: Use chromeec_smi_sleep()
Change-Id: I8a04068dd986f2d5dbebecd0bff08cc0189a34d6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74605
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src/mainboard/intel/strago')
-rw-r--r-- | src/mainboard/intel/strago/smihandler.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/mainboard/intel/strago/smihandler.c b/src/mainboard/intel/strago/smihandler.c index 40a85448a8..d592fdcaa5 100644 --- a/src/mainboard/intel/strago/smihandler.c +++ b/src/mainboard/intel/strago/smihandler.c @@ -5,7 +5,6 @@ #include <cpu/x86/smm.h> #include "ec.h" -#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/smm.h> #include <soc/pm.h> @@ -38,24 +37,7 @@ void mainboard_smi_sleep(uint8_t slp_typ) break; } - switch (slp_typ) { - case ACPI_S3: - /* Enable wake events */ - google_chromeec_set_wake_mask(MAINBOARD_EC_S3_WAKE_EVENTS); - break; - case ACPI_S5: - /* Enable wake events */ - google_chromeec_set_wake_mask(MAINBOARD_EC_S5_WAKE_EVENTS); - break; - } - - /* Disable SCI and SMI events */ - google_chromeec_set_smi_mask(0); - google_chromeec_set_sci_mask(0); - - /* Clear pending events that may trigger immediate wake */ - while (google_chromeec_get_event() != EC_HOST_EVENT_NONE) - ; + chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS); /* Set LPC lines to low power in S3/S5. */ if ((slp_typ == ACPI_S3) || (slp_typ == ACPI_S5)) |