UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor lukas.yoder
Visitor
303 Views
Registered: ‎05-11-2018

ZCU102 TTC Interrupt Handling in Linux

Hey,

I'm writing a driver that generates and handles TTC interupts. Within the driver, I have the following line:

request_irq(68,some_function_of_type_irqreturn_t,IRQF_TIMER,"interrupter",NULL);

Every time I run my driver, I get -EINVAL (the invalid argument error) returned by this function, so it looks like I'm doing something wrong in this function call.

Page 305 of the Zynq Ultrascale+ TRM confirms that I'm using the right IRQ value.

What I'm trying to do is register the IRQ line of the first counter within TTC0 with the kernel so that my interrupt handler will work. Do any of you know what I'm doing wrong? (Couldn't find any answers in the forum or through Google, and the kernel source linux/interrupt.h yields an enormous number of ways in which the function could return -EINVAL.)

0 Kudos