UART Rx with DMA

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

UART Rx with DMA

2,377 Views
makotokatsukura
Contributor II

Dear Timesys support,

Hi,

I'm currently working with Vybrid and using Timesys Linux.

I want to use UART with DMA both TX and RX.

However, now, at Timesys Linux, UART Tx is using DMA but Rx is not using DMA.


So, can we use DMA for UART Rx? 

I've checked Linux UART driver for i.MX6, original code for Vybrid UART driver,

and at that code, both UART Tx and Rx used DMA.

I'm curious why UART Rx was changed not to use DMA during porting to Vybrid.

And if I order professional service to Timesys, can you produce the UART driver that both Tx and RX are using DMA?



Thank you,

Makoto Katsukura

Labels (4)
Tags (2)
3 Replies

681 Views
falstaff
Senior Contributor I

Hi Katsukura,

The current mainline driver has some RX DMA support, see fsl_lpuart.c:

Linux/drivers/tty/serial/fsl_lpuart.c - Linux Cross Reference - Free Electrons

Although in its current state in 3.16 the driver has some bugs. See also this discussion in the ARM Linux mailing list:

Re: fsl_lpuart/VF610: Division by zero. — ARM, OMAP, Xscale Linux Kernel

--

Stefan

681 Views
timesyssupport
Senior Contributor II

Hello Katsukura-san,

We did not do the original porting of the UART driver to the 3.0 Vybrid kernel, so I am not aware of the reason that DMA for Rx was not ported.

Adding DMA for UART Rx is something Timesys can produce via professional services. You can contact sales@timesys.com if you would be interested in this or for more information.

Thanks,

Timesys Support

681 Views
naoumgitnik
Senior Contributor V

Dear timesyssupport, may you reply, please?

Thanks, Naoum Gitnik.

0 Kudos