mb/google/fatcat/var/fatcat: Refactor GPIO programming for UFS support
[coreboot.git] / src / mainboard / google / myst / variants / baseboard / smihandler.c
blob7d439d5c31a661e8063e523139d61bf6ee044bf3
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <cpu/x86/smm.h>
5 #include <ec/google/chromeec/ec.h>
6 #include <ec/google/chromeec/smm.h>
7 #include <variant/ec.h>
9 void mainboard_smi_sleep(u8 slp_typ)
11 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S0IX_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS);
14 int mainboard_smi_apmc(u8 apmc)
16 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS);
18 return 0;