Forum Discussion
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.
- JET602005 years ago
Contributor
Thanks @Isaac_V_Intel for the answer,
I search and found there's the explaination as following on rocketboard ,
" .. It is worth noting that the GIC IRQ computation for FPGA based peripherals is slightly different for A10 SoC. Unlike CV SoC, the A10 SoC requires us to add 51 to the IRQ value reported in the Platform Designer header and then subtract 32 from that value "
( https://rocketboards.org/foswiki/Documentation/HOWTOCreateADeviceTree )
Appreciate your clarification