blob: ff59b2b042539ed91dc5a970db1df283eb10385b [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>
4#include <console/console.h>
5#include <cpu/x86/smm.h>
6#include <ec/google/chromeec/ec.h>
7#include <ec/google/chromeec/smm.h>
Jon Murphyf79cc512022-02-17 16:15:45 -07008#include <elog.h>
Felix Held8d1ef732022-12-06 21:29:49 +01009#include <gpio.h>
Jon Murphy2a7445a2022-02-16 06:46:47 -070010#include <variant/ec.h>
11
12void mainboard_smi_sleep(u8 slp_typ)
13{
Jon Murphy2a7445a2022-02-16 06:46:47 -070014 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS);
Jon Murphy2a7445a2022-02-16 06:46:47 -070015}
16
17int mainboard_smi_apmc(u8 apmc)
18{
19 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS);
20
21 return 0;
22}