drivers/ocp/ewl: Enforce MRC when there's EWL type3 error

If Fastboot is enabled, the next boot will skip MRC and won't be able
to detect MRC error via EWL and still continues booting. Enforce FSP
MRC training in the next boot.

Change-Id: I9dee0472f8e2602cecf88c6d00dec0bf02b9f7bd
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69148
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
diff --git a/src/drivers/ocp/ewl/ewl.c b/src/drivers/ocp/ewl/ewl.c
index 244634b..f1f8137 100644
--- a/src/drivers/ocp/ewl/ewl.c
+++ b/src/drivers/ocp/ewl/ewl.c
@@ -87,6 +87,10 @@
 		}
 		offset += warning_header->Size;
 	}
-	if (type3_flag)
+	if (type3_flag) {
+		/* If Fastboot is enabled, the next boot will skip MRC and won't detect
+		   MRC error via EWL and still can boot up, so enforce MRC after reboot. */
+		soc_set_mrc_cold_boot_flag(true);
 		die("Memory Training Error!\n");
+	}
 }