diff options
Diffstat (limited to 'src/mainboard/google/falco/smihandler.c')
-rw-r--r-- | src/mainboard/google/falco/smihandler.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainboard/google/falco/smihandler.c b/src/mainboard/google/falco/smihandler.c index ee56987d02..bf2165f7ea 100644 --- a/src/mainboard/google/falco/smihandler.c +++ b/src/mainboard/google/falco/smihandler.c @@ -107,6 +107,9 @@ void mainboard_smi_sleep(u8 slp_typ) set_gpio(GPIO_WLAN_DISABLE_L, 0); /* Disable LTE */ set_gpio(GPIO_LTE_DISABLE_L, 0); + + /* Enable wake events */ + google_chromeec_set_wake_mask(MAINBOARD_EC_S3_WAKE_EVENTS); break; case 5: if (smm_get_gnvs()->s5u0 == 0) @@ -120,6 +123,9 @@ void mainboard_smi_sleep(u8 slp_typ) set_gpio(GPIO_WLAN_DISABLE_L, 0); /* Disable LTE */ set_gpio(GPIO_LTE_DISABLE_L, 0); + + /* Enable wake events */ + google_chromeec_set_wake_mask(MAINBOARD_EC_S5_WAKE_EVENTS); break; } @@ -129,9 +135,6 @@ void mainboard_smi_sleep(u8 slp_typ) /* Clear pending events that may trigger immediate wake */ while (google_chromeec_get_event() != 0); - - /* Enable wake events */ - google_chromeec_set_wake_mask(MAINBOARD_EC_S3_WAKE_EVENTS); } #define APMC_FINALIZE 0xcb |