Skip to content

Commit 480715c

Browse files
committed
[ot] hw/riscv: ot_earlgrey: Connect alert escalation severities
Connects GPIO signals for the four different escalation severities of OpenTitan Earlgrey's Alert handler. For now, escalation signal 3 (phase 3) connects to the pwrmgr, where it causes a shutdown as is the default in Darjeeling. In reality, the alert handler should cause a reset in phase 3 and populate the rstmgr's `reset_info` accordingly, but this requires additional work in other blocks, and as such we simply leave this connected to the pwrmgr shutdown for now to match Darjeeling's functionality. Signed-off-by: Alex Jones <[email protected]>
1 parent 5eb99a4 commit 480715c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hw/riscv/ot_earlgrey.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,11 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
637637
OT_EG_SOC_GPIO_SYSBUS_IRQ(0, PLIC, 127),
638638
OT_EG_SOC_GPIO_SYSBUS_IRQ(1, PLIC, 128),
639639
OT_EG_SOC_GPIO_SYSBUS_IRQ(2, PLIC, 129),
640-
OT_EG_SOC_GPIO_SYSBUS_IRQ(3, PLIC, 130)
640+
OT_EG_SOC_GPIO_SYSBUS_IRQ(3, PLIC, 130),
641+
OT_EG_SOC_GPIO_ESCALATE(0, IBEX_WRAPPER, 0),
642+
OT_EG_SOC_GPIO_ESCALATE(1, LC_CTRL, 0),
643+
OT_EG_SOC_GPIO_ESCALATE(1, LC_CTRL, 1),
644+
OT_EG_SOC_GPIO_ESCALATE(3, PWRMGR, 0)
641645
),
642646
.link = IBEXDEVICELINKDEFS(
643647
OT_EG_SOC_DEVLINK("edn", EDN0)

0 commit comments

Comments
 (0)