diff options
author | Johnny Lin <johnny_lin@wiwynn.com> | 2022-04-12 15:46:43 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-05-23 20:25:34 +0000 |
commit | f89cd1cf43b4afbd78dbf14ad71bfba92a28029f (patch) | |
tree | 49ddc1d697593f4546b9e247fe485bb3948ad8b5 | |
parent | 3435f81ab754bd9dcdb6a63e19621561c3b145e4 (diff) |
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>
-rw-r--r-- | src/drivers/ocp/ewl/ewl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/ocp/ewl/ewl.c b/src/drivers/ocp/ewl/ewl.c index 244634bcf9..f1f8137b26 100644 --- a/src/drivers/ocp/ewl/ewl.c +++ b/src/drivers/ocp/ewl/ewl.c @@ -87,6 +87,10 @@ void get_ewl(void) } 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"); + } } |