Skip to content

Commit c4b3e01

Browse files
committed
[ot] hw/riscv: ot_earlgrey: connect SPI Device to Host IRQs
Signed-off-by: Alice Ziuziakowska <[email protected]>
1 parent e8dca14 commit c4b3e01

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hw/riscv/ot_earlgrey.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
553553
.memmap = MEMMAPENTRIES(
554554
{ .base = 0x40050000u }
555555
),
556+
.link = IBEXDEVICELINKDEFS(
557+
OT_EG_SOC_DEVLINK("spihost", SPI_HOST0)
558+
),
556559
.gpio = IBEXGPIOCONNDEFS(
557560
OT_EG_SOC_GPIO_SYSBUS_IRQ(0, PLIC, 69),
558561
OT_EG_SOC_GPIO_SYSBUS_IRQ(1, PLIC, 70),
@@ -562,7 +565,11 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
562565
OT_EG_SOC_GPIO_SYSBUS_IRQ(5, PLIC, 74),
563566
OT_EG_SOC_GPIO_SYSBUS_IRQ(6, PLIC, 75),
564567
OT_EG_SOC_GPIO_SYSBUS_IRQ(7, PLIC, 76),
565-
OT_EG_SOC_GPIO_ALERT(0, 5)
568+
OT_EG_SOC_GPIO_ALERT(0, 5),
569+
OT_EG_SOC_SIGNAL(OT_SPI_DEVICE_PASSTHROUGH_EN, 0, SPI_HOST0,
570+
OT_SPI_HOST_PASSTHROUGH_EN, 0),
571+
OT_EG_SOC_SIGNAL(OT_SPI_DEVICE_PASSTHROUGH_CS, 0, SPI_HOST0,
572+
OT_SPI_HOST_PASSTHROUGH_CS, 0)
566573
),
567574
},
568575
[OT_EG_SOC_DEV_I2C0] = {

0 commit comments

Comments
 (0)