Skip to content

Commit c751059

Browse files
committed
[bazel] Add cw340_rom_with_fake_keys to default envs
Signed-off-by: James Wainwright <[email protected]>
1 parent 68bb025 commit c751059

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

rules/opentitan/defs.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ EARLGREY_TEST_ENVS = {
120120
"//hw/top_earlgrey:fpga_cw310_sival_rom_ext": None,
121121
"//hw/top_earlgrey:fpga_cw340_sival_rom_ext": None,
122122
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys": None,
123+
"//hw/top_earlgrey:fpga_cw340_rom_with_fake_keys": None,
123124
"//hw/top_earlgrey:sim_dv": None,
124125
"//hw/top_earlgrey:sim_verilator": None,
125126
"//hw/top_earlgrey:sim_qemu_rom_with_fake_keys": None,

sw/device/tests/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,10 @@ opentitan_test(
862862
# changing the key for a single environment.
863863
dicts.omit(
864864
EARLGREY_TEST_ENVS,
865-
["//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys"],
865+
[
866+
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys",
867+
"//hw/top_earlgrey:fpga_cw340_rom_with_fake_keys",
868+
],
866869
),
867870
{
868871
"//hw/top_earlgrey:fpga_cw310_sival": None,

sw/device/tests/alert_handler_lpg_sleep_mode_pings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ bool test_main(void) {
504504
// We need to initialize the info FLASH partitions storing the Creator and
505505
// Owner secrets to avoid getting the flash controller into a fatal error
506506
// state.
507-
if (kDeviceType == kDeviceFpgaCw310) {
507+
if (kDeviceType == kDeviceFpgaCw310 || kDeviceType == kDeviceFpgaCw340) {
508508
CHECK_STATUS_OK(keymgr_testutils_flash_init(&flash_ctrl, &kCreatorSecret,
509509
&kOwnerSecret));
510510
chip_sw_reset();

sw/device/tests/alert_handler_reverse_ping_in_deep_sleep_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ bool test_main(void) {
210210
// We need to initialize the info FLASH partitions storing the Creator and
211211
// Owner secrets to avoid getting the flash controller into a fatal error
212212
// state.
213-
if (kDeviceType == kDeviceFpgaCw310) {
213+
if (kDeviceType == kDeviceFpgaCw310 || kDeviceType == kDeviceFpgaCw340) {
214214
dif_rstmgr_reset_info_bitfield_t rst_info = rstmgr_testutils_reason_get();
215215
if (rst_info & kDifRstmgrResetInfoPor) {
216216
CHECK_STATUS_OK(keymgr_testutils_flash_init(&flash_ctrl, &kCreatorSecret,
@@ -226,7 +226,7 @@ bool test_main(void) {
226226

227227
// Update the expected `reset_info` value for the FPGA target, as we have
228228
// a soft reset required to apply the info flash page configuration.
229-
if (kDeviceType == kDeviceFpgaCw310) {
229+
if (kDeviceType == kDeviceFpgaCw310 || kDeviceType == kDeviceFpgaCw340) {
230230
reset_info = kDifRstmgrResetInfoSw;
231231
}
232232

0 commit comments

Comments
 (0)