How to use gpt of imx6ull for external pulse capture?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use gpt of imx6ull for external pulse capture?

1,022 次查看
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 项奖励
回复
2 回复数

906 次查看
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 项奖励
回复

906 次查看
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 项奖励
回复