diff options
Diffstat (limited to 'src/mainboard/google/slippy/smihandler.c')
-rw-r--r-- | src/mainboard/google/slippy/smihandler.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mainboard/google/slippy/smihandler.c b/src/mainboard/google/slippy/smihandler.c index 16a1b18b7a..f02ee403f5 100644 --- a/src/mainboard/google/slippy/smihandler.c +++ b/src/mainboard/google/slippy/smihandler.c @@ -14,6 +14,7 @@ /* Include EC functions */ #include <ec/google/chromeec/ec.h> +#include <ec/google/chromeec/smm.h> #include "ec.h" /* Codec enable: GPIO45 */ @@ -106,21 +107,6 @@ void mainboard_smi_sleep(u8 slp_typ) int mainboard_smi_apmc(u8 apmc) { - switch (apmc) { - case APM_CNT_ACPI_ENABLE: - google_chromeec_set_smi_mask(0); - /* Clear all pending events */ - while (google_chromeec_get_event() != EC_HOST_EVENT_NONE) - ; - google_chromeec_set_sci_mask(MAINBOARD_EC_SCI_EVENTS); - break; - case APM_CNT_ACPI_DISABLE: - google_chromeec_set_sci_mask(0); - /* Clear all pending events */ - while (google_chromeec_get_event() != EC_HOST_EVENT_NONE) - ; - google_chromeec_set_smi_mask(MAINBOARD_EC_SMI_EVENTS); - break; - } + chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS); return 0; } |