GPT Capture inputs on the i.MX8XQuadPlus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPT Capture inputs on the i.MX8XQuadPlus

657 Views
nlbutts
Contributor III

I would like to use the capture capability of the i.MX8X GPT interfaces. Reading through the i.MX Linux Reference Manual it doesn't appear there is support for a frequency/capture input capability. 

https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf

I also looked through the driver code and found timer-imx-gpt.c. This appears to match the register interface for the GPT timers (at least the V2 section). But I don't see anything in there with respect to using the capture registers. 

I then came across this:

https://patchwork.kernel.org/project/linux-media/patch/1465944574-15745-28-git-send-email-steve_long...

It appears to add capture support to the GPT driver. Has anyone else implemented GPT capture inputs?

0 Kudos
2 Replies

494 Views
lidy
Contributor I
Hi nlbutts How to finally solve this problem??
0 Kudos

649 Views
igorpadykov
NXP Employee
NXP Employee

Hi Nicholas

 

for GPT capture example one can look at ../driver_examples/gpt/capture/gpt_capture.c

M4 SDK_MEK-MIMX8QX available on https://mcuxpresso.nxp.com/en/welcome

 

Best regards
igor

0 Kudos