acpi_gic: Add helper for platform gicc
[coreboot2.git] / src / mainboard / google / brox / smihandler.c
blob21b441f8d963ccb3fb9377c9fc281042ec823615
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
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 <baseboard/variants.h>
8 #include <intelblocks/smihandler.h>
9 #include <variant/ec.h>
11 void __weak variant_smi_sleep(u8 slp_typ) {}
13 void mainboard_smi_sleep(u8 slp_typ)
15 variant_smi_sleep(slp_typ);
16 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS);
19 int mainboard_smi_apmc(u8 apmc)
21 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS);
22 return 0;
25 void elog_gsmi_cb_mainboard_log_wake_source(void)
27 google_chromeec_log_events(MAINBOARD_EC_LOG_EVENTS | MAINBOARD_EC_S0IX_WAKE_EVENTS);
30 void mainboard_smi_espi_handler(void)
32 chromeec_smi_process_events();