Mathew King | ee10ce6 | 2021-03-04 15:34:37 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <baseboard/variants.h> |
Felix Held | 5db62ef | 2021-04-15 01:04:06 +0200 | [diff] [blame] | 4 | #include <console/console.h> |
Mathew King | ee10ce6 | 2021-03-04 15:34:37 -0700 | [diff] [blame] | 5 | #include <cpu/x86/smm.h> |
Mathew King | 454426d | 2021-03-04 17:10:34 -0700 | [diff] [blame] | 6 | #include <ec/google/chromeec/ec.h> |
Mathew King | ee10ce6 | 2021-03-04 15:34:37 -0700 | [diff] [blame] | 7 | #include <ec/google/chromeec/smm.h> |
Mathew King | 454426d | 2021-03-04 17:10:34 -0700 | [diff] [blame] | 8 | #include <elog.h> |
Mathew King | ee10ce6 | 2021-03-04 15:34:37 -0700 | [diff] [blame] | 9 | #include <variant/ec.h> |
| 10 | |
| 11 | void mainboard_smi_gpi(u32 gpi_sts) |
| 12 | { |
Felix Held | 5db62ef | 2021-04-15 01:04:06 +0200 | [diff] [blame] | 13 | printk(BIOS_WARNING, "No GPIO is set up as PAD_SMI, so %s should never end up being " |
| 14 | "called. gpi_status is %x.\n", __func__, gpi_sts); |
Mathew King | ee10ce6 | 2021-03-04 15:34:37 -0700 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | void mainboard_smi_sleep(u8 slp_typ) |
| 18 | { |
Mathew King | ee10ce6 | 2021-03-04 15:34:37 -0700 | [diff] [blame] | 19 | chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS); |
Mathew King | ee10ce6 | 2021-03-04 15:34:37 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | int mainboard_smi_apmc(u8 apmc) |
| 23 | { |
| 24 | chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS); |
| 25 | |
| 26 | return 0; |
| 27 | } |