iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

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

iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

Jump to solution
2,679 Views
JanieZee
Contributor I

I want to use EPIT to achieve an interrupt every 156us, but actual tests have found that the interrupt interval is not precisely 156us, with some intervals even reaching the millisecond level.

Why is this happening? What should I do to achieve an accurate 156us periodic interrupt?

Thanks

0 Kudos
Reply
1 Solution
4 Replies
2,650 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

How do you call the epit function in your test? Have you write EPIT driver by yourself?

0 Kudos
Reply
2,648 Views
JanieZee
Contributor I

Yes, this is the EPIT driver. Additionally, I have set CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y, but the interrupt interval is still not accurate.

0 Kudos
Reply
2,645 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
1,154 Views
bighero77
Contributor III
for the first method. the code is here. but would not been build
how can I make this file build?
thanks.
https://github.com/nxp-imx/linux-imx/blob/imx_4.1.15_2.0.0_ga/arch/arm/mach-imx/epit.c
0 Kudos
Reply