How to use gpt of imx6ull for external pulse capture?

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

How to use gpt of imx6ull for external pulse capture?

692 Views
riguangpeng
Contributor I

Hello NXP:

I want to use gpt(General Purpose Timer) to capture external pulse for counting, I know the gpt1 is used by the kernel to generate the ticks for the OS, so I want to use gpt2, but when I access the base register of gpt2 in console by uart, then the OS hangs. 

Can you help me? Thank you!

 

0 Kudos
2 Replies

576 Views
igorpadykov
NXP Employee
NXP Employee

Hi riguang

one can check that it was enabled in dts file

gpt2 {
    status = "okay";

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

576 Views
riguangpeng
Contributor I

hi igorpadykov :

I enable tpt2 in dts.

I think that there is no official driver in Linux 4.4.15 kernel which is download from NXP.

0 Kudos