payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / intel / shadowmountain / smihandler.c
blobe20135b081895d5f217116df9f3f523f0398e39e
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <cpu/x86/smm.h>
4 #include <ec/google/chromeec/smm.h>
5 #include <intelblocks/smihandler.h>
6 #include <baseboard/ec.h>
8 void mainboard_smi_espi_handler(void)
10 chromeec_smi_process_events();
13 void mainboard_smi_sleep(u8 slp_typ)
15 if (!CONFIG(EC_GOOGLE_CHROMEEC))
16 return;
18 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS);
21 int mainboard_smi_apmc(u8 apmc)
23 if (CONFIG(EC_GOOGLE_CHROMEEC))
24 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS);
26 return 0;