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
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
Thank you Dhruvit. Do you have any sample application?
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