mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / hatch / smihandler.c
blobceab9fa2accf350933521256c521fe0fee9b6165
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #include <baseboard/variants.h>
3 #include <cpu/x86/smm.h>
4 #include <ec/google/chromeec/ec.h>
5 #include <ec/google/chromeec/smm.h>
6 #include <elog.h>
7 #include <intelblocks/smihandler.h>
8 #include <variant/ec.h>
10 void mainboard_smi_espi_handler(void)
12 chromeec_smi_process_events();
15 void mainboard_smi_sleep(u8 slp_typ)
17 const struct pad_config *pads;
18 size_t num;
20 pads = variant_sleep_gpio_table(slp_typ, &num);
21 gpio_configure_pads(pads, num);
23 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS,
24 MAINBOARD_EC_S5_WAKE_EVENTS);
27 int mainboard_smi_apmc(u8 apmc)
29 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS,
30 MAINBOARD_EC_SMI_EVENTS);
31 return 0;
34 void elog_gsmi_cb_mainboard_log_wake_source(void)
36 google_chromeec_log_events(MAINBOARD_EC_LOG_EVENTS |
37 MAINBOARD_EC_S0IX_WAKE_EVENTS);