Debian Codegraph @

src/mainboard/google/poppy/smihandler.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
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 <gpio.h>
8 #include <intelblocks/smihandler.h>
9
10 #include <baseboard/variants.h>
11 #include <variant/gpio.h>
12 #include <variant/ec.h>
13
14 void mainboard_smi_espi_handler(void)
15 {
16 chromeec_smi_process_events();
17 }
18
19 void __weak variant_smi_sleep(u8 slp_typ) {}
20
21 void mainboard_smi_sleep(u8 slp_typ)
22 {
23 const struct google_chromeec_event_info *info;
24
25 info = variant_get_event_info();
26
27 variant_smi_sleep(slp_typ);
28 chromeec_smi_sleep(slp_typ, info->s3_wake_events, info->s5_wake_events);
29 }
30
31 int mainboard_smi_apmc(u8 apmc)
32 {
33 const struct google_chromeec_event_info *info;
34
35 info = variant_get_event_info();
36
37 chromeec_smi_apmc(apmc, info->sci_events, info->smi_events);
38
39 return 0;
40 }
41
42 void elog_gsmi_cb_mainboard_log_wake_source(void)
43 {
44 const struct google_chromeec_event_info *info;
45
46 info = variant_get_event_info();
47
48 google_chromeec_log_events(info->log_events | info->s0ix_wake_events);
49 }