Skip to content

Commit 938c71e

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

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
@@ -552,6 +552,9 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
552552
.memmap = MEMMAPENTRIES(
553553
{ .base = 0x40050000u }
554554
),
555+
.link = IBEXDEVICELINKDEFS(
556+
OT_EG_SOC_DEVLINK("spihost", SPI_HOST0)
557+
),
555558
.gpio = IBEXGPIOCONNDEFS(
556559
OT_EG_SOC_GPIO_SYSBUS_IRQ(0, PLIC, 69),
557560
OT_EG_SOC_GPIO_SYSBUS_IRQ(1, PLIC, 70),
@@ -561,7 +564,11 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
561564
OT_EG_SOC_GPIO_SYSBUS_IRQ(5, PLIC, 74),
562565
OT_EG_SOC_GPIO_SYSBUS_IRQ(6, PLIC, 75),
563566
OT_EG_SOC_GPIO_SYSBUS_IRQ(7, PLIC, 76),
564-
OT_EG_SOC_GPIO_ALERT(0, 5)
567+
OT_EG_SOC_GPIO_ALERT(0, 5),
568+
OT_EG_SOC_SIGNAL(OT_SPI_DEVICE_PASSTHROUGH_EN, 0, SPI_HOST0,
569+
OT_SPI_HOST_PASSTHROUGH_EN, 0),
570+
OT_EG_SOC_SIGNAL(OT_SPI_DEVICE_PASSTHROUGH_CS, 0, SPI_HOST0,
571+
OT_SPI_HOST_PASSTHROUGH_CS, 0)
565572
),
566573
},
567574
[OT_EG_SOC_DEV_I2C0] = {

0 commit comments

Comments
 (0)