MLK-14543 tty: serial: fsl_lpuart: add lpuart32 dma support
authorAndy Duan <fugang.duan@nxp.com>
Wed, 29 Mar 2017 07:23:27 +0000 (15:23 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:45 +0000 (15:21 -0500)
commit425a583b138d3f98c589528f5babadf05f95180c
tree647834b10d59c907c8ebb44b8c9e86b07150edf6
parent5b9f315eedbc8aa051dcab679c4a21dd589db5a4
MLK-14543 tty: serial: fsl_lpuart: add lpuart32 dma support

The current driver don't support lpuart32 DMA mode.
The patch add lpuart32 tx/rx DMA support, there have two main changes:
- lpuart32 tx dma resue lpuart tx dma mode to reduce code duplication.
- lpuart32 rx dma still use prep_sg mode since imx7ulp don't support
  eeop mode that also ailgned with 4.1.y.

If don't use DMA mode, remove dma chan property in dts file.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/tty/serial/fsl_lpuart.c