mb/google/nissa: Create pujjogatwin variant
[coreboot2.git] / src / mainboard / intel / jasperlake_rvp / smihandler.c
blobbe0066a91b1d1f813a01e8385ada480e2f5f8e1a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <cpu/x86/smm.h>
5 #include <ec/google/chromeec/ec.h>
6 #include <ec/google/chromeec/smm.h>
7 #include <elog.h>
8 #include <intelblocks/smihandler.h>
9 #include <baseboard/ec.h>
11 void mainboard_smi_espi_handler(void)
13 if (CONFIG(EC_GOOGLE_CHROMEEC))
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, MAINBOARD_EC_SMI_EVENTS);
29 return 0;
32 void elog_gsmi_cb_mainboard_log_wake_source(void)
34 if (CONFIG(EC_GOOGLE_CHROMEEC))
35 google_chromeec_log_events(MAINBOARD_EC_LOG_EVENTS |
36 MAINBOARD_EC_S3_WAKE_EVENTS);