File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -3650,6 +3650,7 @@ opentitan_test(
3650
3650
{
3651
3651
"//hw/top_earlgrey:fpga_cw310_sival" : None ,
3652
3652
"//hw/top_earlgrey:silicon_creator" : None ,
3653
+ "//hw/top_darjeeling:sim_dv" : None ,
3653
3654
},
3654
3655
),
3655
3656
qemu = qemu_params (
@@ -3659,8 +3660,7 @@ opentitan_test(
3659
3660
},
3660
3661
),
3661
3662
deps = [
3662
- "//hw/top_earlgrey/sw/autogen:top_earlgrey" ,
3663
- "//sw/device/lib/base:mmio" ,
3663
+ "//hw/top:dt" ,
3664
3664
"//sw/device/lib/dif:rstmgr" ,
3665
3665
"//sw/device/lib/runtime:log" ,
3666
3666
"//sw/device/lib/testing:rstmgr_testutils" ,
Original file line number Diff line number Diff line change 2
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
3
// SPDX-License-Identifier: Apache-2.0
4
4
5
- #include "sw/device/lib/base/mmio .h"
5
+ #include "dt/dt_rstmgr .h" // Generated
6
6
#include "sw/device/lib/dif/dif_rstmgr.h"
7
7
#include "sw/device/lib/runtime/log.h"
8
8
#include "sw/device/lib/testing/rstmgr_testutils.h"
9
9
#include "sw/device/lib/testing/test_framework/check.h"
10
10
#include "sw/device/lib/testing/test_framework/ottf_main.h"
11
11
12
- #include "hw/top_earlgrey/sw/autogen/top_earlgrey.h"
13
-
14
12
static dif_rstmgr_t rstmgr ;
13
+ static dt_rstmgr_t kRstmgrDt = (dt_rstmgr_t )0 ;
14
+ static_assert (kDtRstmgrCount == 1 , "This test requires 1 rstmgr" );
15
15
16
16
OTTF_DEFINE_TEST_CONFIG ();
17
17
18
18
bool test_main (void ) {
19
- CHECK_DIF_OK (dif_rstmgr_init (
20
- mmio_region_from_addr (TOP_EARLGREY_RSTMGR_AON_BASE_ADDR ), & rstmgr ));
19
+ CHECK_DIF_OK (dif_rstmgr_init_from_dt (kRstmgrDt , & rstmgr ));
21
20
22
21
dif_rstmgr_reset_info_bitfield_t reason ;
23
22
reason = rstmgr_testutils_reason_get ();
You can’t perform that action at this time.
0 commit comments