Skip to content

Commit

Permalink
[rstmgr, sival] Fix alert_info test on ROM_EXT + FPGA
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
engdoreis committed Apr 24, 2024
1 parent 5a6e9ff commit 67d6a7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sw/device/tests/rstmgr_alert_info_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 67d6a7c

Please sign in to comment.