thenumberdevil Posted May 12, 2020 Posted May 12, 2020 Interrupt handling from PL to PS system Hi, I could receive the Interrupt from PL in baremetal. #define XPS_FPGA0_INT_ID 61U . What is the workflow which should follow to get the same interrupt from PS to PL in linux. Since it is a shared peripheral interrupt , I have been specifying my interrupt request number to be 29 ie (61-32). if (request_irq(29, &rotary_encoder_irq, IRQF_TRIGGER_HIGH, DRV_NAME, pdev)) { After this registration I am not getting any callback. Please let me know some ideas What I am missing?. Thank you in advance.
Ionel Posted May 15, 2020 Posted May 15, 2020 @thenumberdevil In Linux interrupts are handled in kernel-space not in user-space. There is extra work to do that in user-space.
thenumberdevil Posted May 15, 2020 Author Posted May 15, 2020 @lonel It is a driver which is meant for the kernel space. It is not a UIO driver which I am aiming for.
Question
thenumberdevil
Interrupt handling from PL to PS system
Hi,
I could receive the Interrupt from PL in baremetal. #define XPS_FPGA0_INT_ID 61U .
What is the workflow which should follow to get the same interrupt from PS to PL in linux.
Since it is a shared peripheral interrupt , I have been specifying my interrupt request number to be 29 ie (61-32).
if (request_irq(29, &rotary_encoder_irq, IRQF_TRIGGER_HIGH, DRV_NAME, pdev)) {
After this registration I am not getting any callback. Please let me know some ideas
What I am missing?.
Thank you in advance.
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.