System Counter Timer example for UART

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

System Counter Timer example for UART

1,161 Views
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 Kudos
Reply
3 Replies

1,137 Views
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 Kudos
Reply

1,128 Views
gkottur
Contributor I

Thank you Dhruvit. Do you have any sample application?

0 Kudos
Reply

1,112 Views
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 Kudos
Reply