From 67d6a7c258147cff92313e7b512a755460f46c2d Mon Sep 17 00:00:00 2001 From: Douglas Reis Date: Wed, 24 Apr 2024 15:43:10 +0100 Subject: [PATCH] [rstmgr, sival] Fix alert_info test on ROM_EXT + FPGA The test generates a kTopEarlgreyAlertIdFlashCtrlFatalErr alert only on the FPGA and with ROM_EXT. It doesn't happens on Silicon probrably because it has the seeds. Signed-off-by: Douglas Reis --- sw/device/tests/rstmgr_alert_info_test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sw/device/tests/rstmgr_alert_info_test.c b/sw/device/tests/rstmgr_alert_info_test.c index 62b1b8cf26ff1c..27d0284d1e339d 100644 --- a/sw/device/tests/rstmgr_alert_info_test.c +++ b/sw/device/tests/rstmgr_alert_info_test.c @@ -701,6 +701,12 @@ static void init_expected_cause(void) { .alert_info.alert_cause[kTopEarlgreyAlertIdI2c0FatalFault] = 1; kExpectedInfo[kRound3] .alert_info.alert_cause[kTopEarlgreyAlertIdSpiHost0FatalFault] = 1; + + if (kBootStage == kBootStageOwner && + (kDeviceType == kDeviceFpgaCw310 || kDeviceType == kDeviceFpgaCw340)) { + kExpectedInfo[kRound3] + .alert_info.alert_cause[kTopEarlgreyAlertIdFlashCtrlFatalErr] = 1; + } } bool test_main(void) { uint32_t event_idx = 0;