blob: a14dc9840b12a55e0d16b4ca5a3d28166ccaad98 [file] [log] [blame]
Jon Murphy2a7445a2022-02-16 06:46:47 -07001/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#include <baseboard/variants.h>
Jon Murphy2a7445a2022-02-16 06:46:47 -07004#include <cpu/x86/smm.h>
5#include <ec/google/chromeec/ec.h>
6#include <ec/google/chromeec/smm.h>
Jon Murphyf79cc512022-02-17 16:15:45 -07007#include <elog.h>
Felix Held8d1ef732022-12-06 21:29:49 +01008#include <gpio.h>
Jon Murphy2a7445a2022-02-16 06:46:47 -07009#include <variant/ec.h>
10
11void mainboard_smi_sleep(u8 slp_typ)
12{
Jon Murphy2a7445a2022-02-16 06:46:47 -070013 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS);
Jon Murphy2a7445a2022-02-16 06:46:47 -070014}
15
16int mainboard_smi_apmc(u8 apmc)
17{
18 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS);
19
20 return 0;
21}