summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/cse/cse_lite.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/soc/intel/common/block/cse/cse_lite.c b/src/soc/intel/common/block/cse/cse_lite.c
index 1e2a052378..14a73814bf 100644
--- a/src/soc/intel/common/block/cse/cse_lite.c
+++ b/src/soc/intel/common/block/cse/cse_lite.c
@@ -1077,7 +1077,7 @@ static enum csme_failure_reason cse_sub_part_fw_update(const struct cse_bp_info
return handle_cse_sub_part_fw_update_rv(rv);
}
-void cse_fw_sync(void)
+static void do_cse_fw_sync(void)
{
static struct get_bp_info_rsp cse_bp_info;
@@ -1152,6 +1152,13 @@ void cse_fw_sync(void)
}
}
+void cse_fw_sync(void)
+{
+ timestamp_add_now(TS_CSE_FW_SYNC_START);
+ do_cse_fw_sync();
+ timestamp_add_now(TS_CSE_FW_SYNC_END);
+}
+
static enum cb_err send_get_fpt_partition_info_cmd(enum fpt_partition_id id,
struct fw_version_resp *resp)
{
@@ -1214,11 +1221,8 @@ static void ramstage_cse_fw_sync(void *unused)
if (acpi_get_sleep_type() == ACPI_S3)
return;
- if (CONFIG(SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE)) {
- timestamp_add_now(TS_CSE_FW_SYNC_START);
+ if (CONFIG(SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE))
cse_fw_sync();
- timestamp_add_now(TS_CSE_FW_SYNC_END);
- }
}
BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_EXIT, ramstage_cse_fw_sync, NULL);