From e9fa37894e59a35deeb897dcb323765d53603754 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 19 Feb 2021 15:56:58 +0100 Subject: [PATCH] soc/intel/xeon_sp: Define all SMI_STS bits As per document 336067-007US (C620 PCH datasheet), add macros for all bits in the SMI_STS register. These will be used in common code. Change-Id: I1cf4b37e2660f55a7bb7a7de977975d85dbb1ffa Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/50915 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/soc/intel/xeon_sp/include/soc/pm.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/soc/intel/xeon_sp/include/soc/pm.h b/src/soc/intel/xeon_sp/include/soc/pm.h index 5087e4f68b..b699e1c26c 100644 --- a/src/soc/intel/xeon_sp/include/soc/pm.h +++ b/src/soc/intel/xeon_sp/include/soc/pm.h @@ -36,12 +36,29 @@ #define GBL_SMI_EN (1 << 0) #define SMI_STS 0x34 #define SMI_STS_BITS 32 +#define XHCI_SMI_STS_BIT 31 +#define ME_SMI_STS_BIT 30 +#define SERIAL_IO_SMI_STS_BIT 29 +#define ESPI_SMI_STS_BIT 28 #define GPIO_UNLOCK_SMI_STS_BIT 27 +#define SPI_SMI_STS_BIT 26 +#define SCC_SMI_STS_BIT 25 +#define IE_SMI_STS_BIT 23 +#define MONITOR_STS_BIT 21 +#define PCI_EXP_SMI_STS_BIT 20 +#define SMBUS_SMI_STS_BIT 16 +#define SERIRQ_SMI_STS_BIT 15 #define PERIODIC_STS_BIT 14 #define TCO_STS_BIT 13 +#define DEVMON_STS_BIT 12 +#define MCSMI_STS_BIT 11 +#define GPIO_STS_BIT 10 +#define GPE0_STS_BIT 9 #define PM1_STS_BIT 8 +#define SWSMI_TMR_STS_BIT 6 #define APM_STS_BIT 5 #define SMI_ON_SLP_EN_STS_BIT 4 +#define LEGACY_USB_STS_BIT 3 #define BIOS_STS_BIT 2 #define GPE_CNTL 0x42 #define SWGPE_CTRL (1 << 1)