Skip to content

Commit

Permalink
[test] enable flash scrambling/ECC in power virus test
Browse files Browse the repository at this point in the history
This partially addresses lowRISC#14814.

Signed-off-by: Timothy Trippel <[email protected]>
  • Loading branch information
timothytrippel committed Mar 16, 2023
1 parent 0b4fd8f commit 6b944e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hw/top_earlgrey/data/chip_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -3518,7 +3518,7 @@
in #14095 for more details on how to approach the implementation.
'''
stage: V3
tests: []
tests: ["chip_sw_power_virus"]
}
{
name: chip_sw_power_idle_load
Expand Down
6 changes: 2 additions & 4 deletions sw/device/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2100,10 +2100,8 @@ otp_json(
otp_partition(
name = "CREATOR_SW_CFG",
items = {
"CREATOR_SW_CFG_FLASH_DATA_DEFAULT_CFG": "0000090909",
# TODO(#14814): enable flash scrambling / ECC by replacing above
# with below.
#"CREATOR_SW_CFG_FLASH_DATA_DEFAULT_CFG": "0000090606",
# Enable flash scrambling and ECC.
"CREATOR_SW_CFG_FLASH_DATA_DEFAULT_CFG": "0000090606",
},
),
],
Expand Down
4 changes: 2 additions & 2 deletions sw/device/tests/power_virus_systemtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,8 @@ static void check_otp_csr_configs(void) {
dif_flash_ctrl_region_properties_t default_properties;
CHECK_DIF_OK(dif_flash_ctrl_get_default_region_properties(
&flash_ctrl, &default_properties));
CHECK(default_properties.scramble_en == kMultiBitBool4False);
CHECK(default_properties.ecc_en == kMultiBitBool4False);
CHECK(default_properties.scramble_en == kMultiBitBool4True);
CHECK(default_properties.ecc_en == kMultiBitBool4True);
CHECK(default_properties.high_endurance_en == kMultiBitBool4False);
}

Expand Down

0 comments on commit 6b944e7

Please sign in to comment.