libpayload: configs: Add new config.featuretest to broaden CI
[coreboot.git] / src / mainboard / intel / kunimitsu / smihandler.c
blobb53d369f67c53d1e3a282dafbad7e6de21c96363
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/x86/smm.h>
4 #include <ec/google/chromeec/smm.h>
5 #include <soc/iomap.h>
6 #include <soc/pm.h>
7 #include <intelblocks/smihandler.h>
8 #include "ec.h"
9 #include "gpio.h"
11 void mainboard_smi_gpi_handler(const struct gpi_status *sts)
13 if (gpi_status_get(sts, EC_SMI_GPI))
14 chromeec_smi_process_events();
17 void mainboard_smi_sleep(u8 slp_typ)
19 if (CONFIG(EC_GOOGLE_CHROMEEC))
20 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS,
21 MAINBOARD_EC_S5_WAKE_EVENTS);
24 int mainboard_smi_apmc(u8 apmc)
26 if (CONFIG(EC_GOOGLE_CHROMEEC))
27 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS,
28 MAINBOARD_EC_SMI_EVENTS);
29 return 0;