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.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/soc/intel/common/block/cse/cse.c b/src/soc/intel/common/block/cse/cse.c
index 6c4bb73cee..1aa3454f6f 100644
--- a/src/soc/intel/common/block/cse/cse.c
+++ b/src/soc/intel/common/block/cse/cse.c
@@ -1424,22 +1424,23 @@ void cse_late_finalize(void)
*/
static void cse_final(struct device *dev)
{
- /* SoC user decided to send EOP late */
- if (CONFIG(SOC_INTEL_CSE_SEND_EOP_LATE))
+ /*
+ * SoC user can have two options for sending EOP:
+ * 1. Choose to send EOP late
+ * 2. Choose to send EOP cmd asynchronously
+ *
+ * In case of sending EOP in asynchronous mode, the EOP command
+ * has most likely not been completed yet. The finalization steps
+ * will be run once the EOP command has successfully been completed.
+ */
+ if (CONFIG(SOC_INTEL_CSE_SEND_EOP_LATE) ||
+ CONFIG(SOC_INTEL_CSE_SEND_EOP_ASYNC))
return;
/* 1. Send EOP to CSE if not done.*/
if (CONFIG(SOC_INTEL_CSE_SET_EOP))
cse_send_end_of_post();
- /*
- * In asynchronous mode, the EOP command has most likely not been
- * completed yet. Finalization steps will be run once the EOP command
- * has successfully been completed.
- */
- if (CONFIG(SOC_INTEL_CSE_SEND_EOP_ASYNC))
- return;
-
if (!CONFIG(USE_FSP_NOTIFY_PHASE_READY_TO_BOOT))
cse_final_ready_to_boot();