xref: /aosp_15_r20/external/coreboot/src/soc/intel/common/block/include/intelblocks/ioc_gpmr.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_INTEL_COMMON_BLOCK_IOC_GPMR_H
4 #define SOC_INTEL_COMMON_BLOCK_IOC_GPMR_H
5 #include <assert.h>
6 
7 #define GPMR_LPCLGIR1		0x7a30
8 #define GPMR_LPCGMR		0x7a40
9 #define GPMR_GCS		0x7a4c
10 #define  GPMR_GCS_BILD		0x1
11 #define GPMR_LPCIOD		0x7a70
12 #define GPMR_LPCIOE		0x7a74
13 #define GPMR_TCOBASE		0x7a78
14 #define  GPMR_TCOEN		(1 << 1)
15 
16 #define MAX_GPMR_REGS		3
17 
18 #define GPMR_OFFSET(x)		(0x7a7c + (x) * 8)
19 #define  GPMR_LIMIT_MASK	0xffff0000
20 #define  GPMR_BASE_SHIFT	16
21 #define  GPMR_BASE_MASK		0xffff
22 
23 #define GPMR_DID_OFFSET(x)	(0x7a80 + (x) * 8)
24 #define  GPMR_EN		BIT(31)
25 
26 #define GPMR_DMICTL		dead_code_t(unsigned int)
27 #define  GPMR_DMICTL_SRLOCK	dead_code_t(unsigned int)
28 
29 #endif
30