blob: b6dd8a0ee430d04acb3a43d6565beb90687c4615 [file] [log] [blame]
Mathew Kingee10ce62021-03-04 15:34:37 -07001/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#include <baseboard/variants.h>
Felix Held5db62ef2021-04-15 01:04:06 +02004#include <console/console.h>
Mathew Kingee10ce62021-03-04 15:34:37 -07005#include <cpu/x86/smm.h>
Mathew King454426d2021-03-04 17:10:34 -07006#include <ec/google/chromeec/ec.h>
Mathew Kingee10ce62021-03-04 15:34:37 -07007#include <ec/google/chromeec/smm.h>
8#include <variant/ec.h>
9
10void mainboard_smi_gpi(u32 gpi_sts)
11{
Felix Held5db62ef2021-04-15 01:04:06 +020012 printk(BIOS_WARNING, "No GPIO is set up as PAD_SMI, so %s should never end up being "
13 "called. gpi_status is %x.\n", __func__, gpi_sts);
Mathew Kingee10ce62021-03-04 15:34:37 -070014}
15
16void mainboard_smi_sleep(u8 slp_typ)
17{
Mathew Kingee10ce62021-03-04 15:34:37 -070018 chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS);
Mathew Kingee10ce62021-03-04 15:34:37 -070019}
20
21int mainboard_smi_apmc(u8 apmc)
22{
23 chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS);
24
25 return 0;
26}