xref: /aosp_15_r20/external/coreboot/src/soc/intel/common/block/include/intelblocks/cse_telemetry_v1.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef SOC_INTEL_COMMON_CSE_TELEMETRY_V1_H
4 #define SOC_INTEL_COMMON_CSE_TELEMETRY_V1_H
5 
6 enum cse_boot_perf_data_v1 {
7 	/* CSME ROM start execution  */
8 	PERF_DATA_CSME_ROM_START = 0,
9 
10 	/* EC Boot Load Done (CSME ROM starts main execution) */
11 	PERF_DATA_EC_BOOT_LOAD_DONE = 1,
12 
13 	/* CSME ROM completed execution / CSME RBE started */
14 	PERF_DATA_CSME_ROM_COMPLETED = 2,
15 
16 	/* CSME got ISSE Init Done indication from ISSE */
17 	PERF_DATA_CSME_GOT_ISSE_INIT_DONE = 3,
18 
19 	/* CSME RBE start PMC patch/es loading */
20 	PERF_DATA_CSME_RBE_PMC_PATCH_LOADING_START = 4,
21 
22 	/* CSME RBE completed PMC patch/es loading */
23 	PERF_DATA_CSME_RBE_PMC_PATCH_LOADING_COMPLETED = 5,
24 
25 	/* CSME RBE set "Boot Stall Done" indication to PMC */
26 	PERF_DATA_CSME_RBE_BOOT_STALL_DONE_TO_PMC = 6,
27 
28 	/* CSME start poll for PMC PPS register */
29 	PERF_DATA_CSME_POLL_FOR_PMC_PPS_START = 7,
30 
31 	/* PMC set PPS */
32 	PERF_DATA_PMC_SET_PPS = 8,
33 
34 	/* CSME BUP start running  */
35 	PERF_DATA_CSME_BUP_START = 9,
36 
37 	/* CSME set "Host Boot Prep Done" indication to PMC  */
38 	PERF_DATA_CSME_HOST_BOOT_PREP_DONE = 10,
39 
40 	/* CSME starts PHYs loading */
41 	PERF_DATA_CSME_PHY_LOADING_START = 11,
42 
43 	/* CSME completed PHYs loading */
44 	PERF_DATA_CSME_PHY_LOADING_COMPLETED = 12,
45 
46 	/* PMC indicated CSME that xxPWRGOOD was asserted */
47 	PERF_DATA_PMC_PWRGOOD_ASSERTED = 13,
48 
49 	/* PMC indicated CSME that SYS_PWROK was asserted */
50 	PERF_DATA_PMC_SYS_PWROK_ASSERTED = 14,
51 
52 	/* PMC sent "CPU_BOOT_CONFIG" start message to CSME */
53 	PERF_DATA_PMC_CPU_BOOT_CONFIG_START = 15,
54 
55 	/* CSME sent "CPU_BOOT_CONFIG" done message to PMC */
56 	PERF_DATA_CSME_CPU_BOOT_CONFIG_DONE = 16,
57 
58 	/* PMC indicated CSME that xxPLTRST was de-asserted */
59 	PERF_DATA_PMC_PLTRST_DEASSERTED = 17,
60 
61 	/* PMC indicated CSME that TCO_S0 was asserted */
62 	PERF_DATA_PMC_TC0_S0_ASSERTED = 18,
63 
64 	/* PMC sent "Core Reset Done Ack - Sent" message to CSME */
65 	PERF_DATA_PMC_SENT_CRDA = 19,
66 
67 	/* ACM Active indication - ACM started its execution */
68 	PERF_DATA_ACM_START = 20,
69 
70 	/* ACM Done indication - ACM completed execution */
71 	PERF_DATA_ACM_DONE = 21,
72 
73 	/* BIOS sent DRAM Init Done message */
74 	PERF_DATA_BIOS_DRAM_INIT_DONE = 22,
75 
76 	/* CSME sent DRAM Init Done message back to BIOS */
77 	PERF_DATA_CSME_DRAM_INIT_DONE = 23,
78 
79 	/* CSME completed loading TCSS */
80 	PERF_DATA_CSME_LOAD_TCSS_COMPLETED = 24,
81 
82 	/* CSME started loading ISH Bringup module */
83 	PERF_DATA_PERF_DATA_CSME_LOAD_ISH_BRINGUP_START = 25,
84 
85 	/* CSME completed loading ISH Bringup module */
86 	PERF_DATA_CSME_LOAD_ISH_BRINGUP_DONE = 26,
87 
88 	/* CSME started loading ISH Main module */
89 	PERF_DATA_CSME_LOAD_ISH_MAIN_START = 27,
90 
91 	/* CSME completed loading Main module */
92 	PERF_DATA_CSME_LOAD_ISH_MAIN_DONE = 28,
93 
94 	/* BIOS sent "End Of Post" message to CSME */
95 	PERF_DATA_BIOS_END_OF_POST = 29,
96 
97 	/* CSME sent "End Of Post" ack message back to BIOS */
98 	PERF_DATA_CSME_END_OF_POST = 30,
99 
100 	/* BIOS sent "Core BIOS Done" message to CSME */
101 	PERF_DATA_BIOS_BIOS_CORE_DONE = 31,
102 
103 	/* CSME sent "Core BIOS Done" ack message back to BIOS */
104 	PERF_DATA_CSME_BIOS_CORE_DONE = 32,
105 
106 	/* CSME reached Firmware Init Done */
107 	PERF_DATA_CSME_GW_INIT_DONE = 33,
108 
109 	/* 34 - 62 Reserved */
110 
111 	/* Timestamp when CSME responded to BupGetBootData message itself */
112 	PERF_DATA_CSME_GET_PERF_RESPONSE = 63,
113 };
114 
115 #endif // SOC_INTEL_COMMON_CSE_TELEMETRY_V1_H
116