thenumberdevil Posted May 12, 2020 Share 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. Link to comment Share on other sites More sharing options...
0 Ionel Posted May 15, 2020 Share 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. Link to comment Share on other sites More sharing options...
0 thenumberdevil Posted May 15, 2020 Author Share 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. Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now