Skip to content

Commit 13e5cb4

Browse files
committed
[ot] hw/opentitan: ot_darjeeling, ot_earlgrey: connect LC DEBUG to SRAM
Connect the lifecycle controller's broadcast `LC_HW_DEBUG_EN` signal to each SRAM controller in both tops, to match the ifetch/execution enablement conditions that are specified in the RTL. Signed-off-by: Alex Jones <[email protected]>
1 parent 2e9ff21 commit 13e5cb4

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

hw/riscv/ot_darjeeling.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,13 @@ static const IbexDeviceDef ot_dj_soc_devices[] = {
15001500
/* IRQ splitters */
15011501
[OT_DJ_SOC_SPLITTER_LC_HW_DEBUG] = {
15021502
.type = TYPE_SPLIT_IRQ,
1503+
.gpio = IBEXGPIOCONNDEFS(
1504+
OT_DJ_SOC_S2D(0, SRAM_CTRL_MAIN, OT_SRAM_CTRL_HW_DEBUG_EN, 0),
1505+
OT_DJ_SOC_S2D(1, SRAM_CTRL_MBOX, OT_SRAM_CTRL_HW_DEBUG_EN, 0),
1506+
OT_DJ_SOC_S2D(2, SRAM_CTRL_RET, OT_SRAM_CTRL_HW_DEBUG_EN, 0)
1507+
),
15031508
.prop = IBEXDEVICEPROPDEFS(
1504-
IBEX_DEV_UINT_PROP("num-lines", 1u) // to be changed
1509+
IBEX_DEV_UINT_PROP("num-lines", 3u) /* @todo: to be changed */
15051510
)
15061511
},
15071512
[OT_DJ_SOC_SPLITTER_LC_ESCALATE] = {
@@ -1511,7 +1516,7 @@ static const IbexDeviceDef ot_dj_soc_devices[] = {
15111516
OT_OTP_LC_ESCALATE_EN)
15121517
),
15131518
.prop = IBEXDEVICEPROPDEFS(
1514-
IBEX_DEV_UINT_PROP("num-lines", 1u) // to be changed
1519+
IBEX_DEV_UINT_PROP("num-lines", 1u) /* @todo to be changed */
15151520
)
15161521
}
15171522
/* clang-format on */

hw/riscv/ot_earlgrey.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,12 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
14701470
/* IRQ splitters */
14711471
[OT_EG_SOC_SPLITTER_LC_HW_DEBUG] = {
14721472
.type = TYPE_SPLIT_IRQ,
1473+
.gpio = IBEXGPIOCONNDEFS(
1474+
OT_EG_SOC_S2D(0, SRAM_MAIN_CTRL, OT_SRAM_CTRL_HW_DEBUG_EN, 0),
1475+
OT_EG_SOC_S2D(1, SRAM_RET_CTRL, OT_SRAM_CTRL_HW_DEBUG_EN, 0)
1476+
),
14731477
.prop = IBEXDEVICEPROPDEFS(
1474-
IBEX_DEV_UINT_PROP("num-lines", 1u) /* @todo to be changed */
1478+
IBEX_DEV_UINT_PROP("num-lines", 2u) /* @todo to be changed */
14751479
)
14761480
},
14771481
[OT_EG_SOC_SPLITTER_LC_ESCALATE] = {

0 commit comments

Comments
 (0)