Get the imx6 epit clock frequency

Hello thereThe board I use is the development board of the IMX6Q of NXP official website. The kernel version I am using is linux3.14.52. The problem I am having now is: I want to get the clock frequency of the EPIT, I want to calculate the time period of its counting according to its frequency. Currently, my epit timer 1 and epit timer 2 are working properly. But when I get the clock frequency of the timer, the value I get is 0. The way I get it is:

How can I get the actual frequency of the clock?Because I want to use epit to achieve precise timing.For example, I want to interrupt once in 1ms. What should I set the EPITLR register to be correct? At the same time, I hope to have a calculation method!I look forward to your help.thank you very much.

One of the reference clock sources above can be selected by appropriately setting the EPITx_CR[CLKSRC] register field. For details, please refer to the Sections 24.6.1 "Control register (EPITx_CR)" and 24.5.1 "Change of Clock Source" of the document above.

Then, there are the 12-bit clock prescaler and 32-bit counter register within the EPIT module.

So, to generate an interrupt every 1ms, you can, for example, select one of the 66MHz reference clock sources (see above), set the prescaler value to 66 (decimal) and counter value to 1000 (decimal).

- We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time.-------------------------------------------------------------------------------