mb/starlabs/{lite_adl,byte_adl}: Don't select MAINBOARD_HAS_TPM2
[coreboot2.git] / src / soc / intel / apollolake / smihandler.c
blobb8319f479136f3a2c495458b5b2714d5cd5d806f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/x86/smm.h>
4 #include <cpu/intel/em64t100_save_state.h>
5 #include <gpio.h>
6 #include <intelblocks/smihandler.h>
7 #include <soc/iomap.h>
8 #include <soc/pci_devs.h>
9 #include <soc/pm.h>
11 int smihandler_soc_disable_busmaster(pci_devfn_t dev)
13 if (dev == PCH_DEV_PMC)
14 return 0;
15 return 1;
18 const struct smm_save_state_ops *get_smm_save_state_ops(void)
20 return &em64t100_smm_ops;
23 const smi_handler_t southbridge_smi[32] = {
24 [SMI_ON_SLP_EN_STS_BIT] = smihandler_southbridge_sleep,
25 [APM_STS_BIT] = smihandler_southbridge_apmc,
26 [PM1_STS_BIT] = smihandler_southbridge_pm1,
27 [GPIO_STS_BIT] = smihandler_southbridge_gpi,
28 #if CONFIG(SOC_INTEL_COMMON_BLOCK_SMM_TCO_ENABLE)
29 [TCO_STS_BIT] = smihandler_southbridge_tco,
30 #endif
31 [PERIODIC_STS_BIT] = smihandler_southbridge_periodic,
32 #if CONFIG(SOC_ESPI)
33 [ESPI_SMI_STS_BIT] = smihandler_southbridge_espi,
34 #endif