1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef _SOC_METEORLAKE_CRASHLOG_H_ 4 #define _SOC_METEORLAKE_CRASHLOG_H_ 5 6 #include <types.h> 7 8 /* DVSEC capability Registers */ 9 #define TEL_DVSEC_OFFSET 0x100 10 #define TEL_DVSEC_PCIE_CAP_ID 0x0 11 #define TEL_DVSEV_ID 0x8 12 #define TEL_DVSEV_DISCOVERY_TABLE_OFFSET 0xC 13 #define TELEMETRY_EXTENDED_CAP_ID 0x23 14 #define CRASHLOG_DVSEC_ID 0x04 15 #define TEL_DVSEC_TBIR_BAR0 0 16 #define TEL_DVSEC_TBIR_BAR1 1 17 18 /* CPU CrashLog MMIO Registers */ 19 #define CRASHLOG_MAILBOX_INTF_ADDRESS 0x6038 20 21 typedef union { 22 struct { 23 u32 reserved1 :27; 24 u32 set_storage_off :1; 25 u32 set_re_arm :1; 26 u32 reserved2 :1; 27 u32 set_clr :1; 28 u32 reserved3 :1; 29 } fields; 30 u32 data; 31 } __packed cl_punit_control_interface_t; 32 33 #endif /* _SOC_METEORLAKE_CRASHLOG_H_ */ 34