mb/google/link: Use chromeec_smi_sleep()
SMI handler previously did not evaluate input slp_typ parameter and apparently always acted as S3 was requested. With the change keyboard is no longer a wakeup source from S4/S5, it is assumed MAINBOARD_EC_S5_WAKE attribute defined in ec.h is correct. Change-Id: I54c7d7455a6737f731c65e57c91b6457643c7cb2 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74603 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>
This commit is contained in:
parent
885aacf004
commit
cdcbb71936
1 changed files with 1 additions and 10 deletions
|
|
@ -22,16 +22,7 @@ void mainboard_smi_sleep(u8 slp_typ)
|
|||
/* Disable USB charging if required */
|
||||
chromeec_set_usb_charge_mode(slp_typ);
|
||||
|
||||
/* 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)
|
||||
;
|
||||
|
||||
/* Enable wake events */
|
||||
google_chromeec_set_wake_mask(MAINBOARD_EC_S3_WAKE_EVENTS);
|
||||
chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS);
|
||||
}
|
||||
|
||||
int mainboard_smi_apmc(u8 apmc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue