System Counter Timer example for UART

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

System Counter Timer example for UART

1,176 次查看
gkottur
Contributor I

Hi,

We have a UART controller code that is running on TI AM335x processor which we are trying to port to i.mx8mp. We use OMAP DM timers and Interrupts for data transfer.

To port to i.mx8mp we are considering using System Counter Timers. 

Are there any examples of using System Counter timer that can be referenced?

in the imx-sysctr.c the timer init function sysctr_timer_init takes device_node as input. Should I be passing the UART device ID?

Thanks,

Guru

0 项奖励
回复
3 回复数

1,152 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @gkottur,

I hope you are doing well.

Please refer to 2.1.3 Timer in i.MX Linux Reference Manual for more information.

One can refer to linux-imx/drivers/tty/serial/imx.c  to see how timers are used in UART kernel driver.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复

1,143 次查看
gkottur
Contributor I

Thank you Dhruvit. Do you have any sample application?

0 项奖励
回复

1,127 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @gkottur,

linux-imx/drivers/tty/serial/imx.c driver does show how to use timers in the kernel device driver.

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复