diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2017-10-04 15:13:52 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-10-15 23:43:21 +0000 |
commit | f8bf9a7eaa9c499317ae32704a05634fcef72e0b (patch) | |
tree | bdc3fa71a76eb895286e810484b7408a34b01b12 /src | |
parent | 79df1fb0904aac6e6c14b4e1262afa0554a2d27d (diff) |
google/kahlee: Add SMI sleep handler
Notify the EC the system is going to sleep.
Change-Id: I025e268a4f806d827348d91effff43a6a339a148
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/21881
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/kahlee/smihandler.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/smihandler.c b/src/mainboard/google/kahlee/smihandler.c index 454b42ecd0..f1c66a6fcb 100644 --- a/src/mainboard/google/kahlee/smihandler.c +++ b/src/mainboard/google/kahlee/smihandler.c @@ -20,6 +20,13 @@ #include <soc/smi.h> #include "ec.h" +void mainboard_smi_sleep(u8 slp_typ) +{ + if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) + chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, + MAINBOARD_EC_S5_WAKE_EVENTS); +} + int mainboard_smi_apmc(u8 apmc) { if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) |