xref: /linux/drivers/gpu/drm/i915/pxp/intel_pxp_regs.h (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright(c) 2023, Intel Corporation. All rights reserved.
4  */
5 
6 #ifndef __INTEL_PXP_REGS_H__
7 #define __INTEL_PXP_REGS_H__
8 
9 #include "i915_reg_defs.h"
10 
11 /* KCR subsystem register base address */
12 #define GEN12_KCR_BASE 0x32000
13 #define MTL_KCR_BASE 0x386000
14 
15 /* KCR enable/disable control */
16 #define KCR_INIT(base) _MMIO((base) + 0xf0)
17 
18 /* Setting KCR Init bit is required after system boot */
19 #define KCR_INIT_ALLOW_DISPLAY_ME_WRITES REG_BIT(14)
20 
21 /* KCR hwdrm session in play status 0-31 */
22 #define KCR_SIP(base) _MMIO((base) + 0x260)
23 
24 /* PXP global terminate register for session termination */
25 #define KCR_GLOBAL_TERMINATE(base) _MMIO((base) + 0xf8)
26 
27 #endif /* __INTEL_PXP_REGS_H__ */
28