mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / glados / smihandler.c
blob744d5d1279ed9956671387fe694148fe50dc146f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variant.h>
4 #include <cpu/x86/smm.h>
5 #include <ec/google/chromeec/smm.h>
6 #include <gpio.h>
7 #include <soc/iomap.h>
8 #include <soc/pm.h>
9 #include <intelblocks/smihandler.h>
10 #include "ec.h"
11 #include <variant/gpio.h>
13 void mainboard_smi_gpi_handler(const struct gpi_status *sts)
15 if (gpi_status_get(sts, EC_SMI_GPI))
16 chromeec_smi_process_events();
19 __weak void mainboard_gpio_smi_sleep(void)
23 void mainboard_smi_sleep(u8 slp_typ)
25 if (CONFIG(EC_GOOGLE_CHROMEEC))
26 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS,
27 MAINBOARD_EC_S5_WAKE_EVENTS);
29 mainboard_gpio_smi_sleep();
32 int mainboard_smi_apmc(u8 apmc)
34 if (CONFIG(EC_GOOGLE_CHROMEEC))
35 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS,
36 MAINBOARD_EC_SMI_EVENTS);
37 return 0;