Forum Discussion

JET60200's avatar
JET60200
Icon for Contributor rankContributor
5 years ago
Solved

A10SOC: "SPI FPGA IP"'s Interrupt Sender is "7", but in linux Device Tree "irqno" set to “26” ?Why

I'm studying an A10SOC FPGA Project from ADI. In the QSYS Designer, there's an "INTEL FPGA SPI IP" module, its IRQ NUMBER set is to "7" (as below picture). And this spi irq connects to "f2h_irq0" ...
  • Isaac_V_Intel's avatar
    5 years ago

    Hello.


    The "26" is because you have the interruption vector with 32 irq, also the irq have the 51 position. So, in the Linux case, you need to make the correct offset for the system understanding.


    Here is how the macro calculate the offset: #define BUTTON_PIO_IRQ (A10_HPS_BUTTON_PIO_IRQ + 51 - 32)


    Best regards,

    Isaac Vazquez.