ec/google/chromeec: Define ACPI_NOTIFY_CROS_EC_MKBP constant
[coreboot.git] / src / soc / intel / meteorlake / cse_telemetry.c
blob6a599c9306e3c867eac7495f1160813aa05747ed
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <console/console.h>
4 #include <intelblocks/cse.h>
5 #include <timestamp.h>
7 void soc_cbmem_inject_telemetry_data(s64 *ts, s64 current_time)
9 s64 start_stamp;
11 if (!ts) {
12 printk(BIOS_ERR, "%s: Failed to insert CSME timestamps\n", __func__);
13 return;
16 start_stamp = current_time - ts[PERF_DATA_CSME_GET_PERF_RESPONSE];
18 timestamp_add(TS_ME_ROM_START, start_stamp);
19 timestamp_add(TS_ME_BOOT_STALL_END,
20 start_stamp + ts[PERF_DATA_CSME_RBE_BOOT_STALL_DONE_TO_PMC]);
21 timestamp_add(TS_ME_ICC_CONFIG_START,
22 start_stamp + ts[PERF_DATA_CSME_GOT_ICC_CFG_START_MSG_FROM_PMC]);
23 timestamp_add(TS_ME_HOST_BOOT_PREP_END,
24 start_stamp + ts[PERF_DATA_CSME_HOST_BOOT_PREP_DONE]);
25 timestamp_add(TS_ME_RECEIVED_CRDA_FROM_PMC,
26 start_stamp + ts[PERF_DATA_PMC_SENT_CRDA]);
27 timestamp_add(TS_ISSE_DMU_LOAD_END,
28 start_stamp + ts[PERF_DATA_ISSE_DMU_LOAD_COMPLETED]);