I want to know how to disable the DMA function of the UART. The kernel version is 3.14.52.

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

I want to know how to disable the DMA function of the UART. The kernel version is 3.14.52.

Jump to solution
3,018 Views
志林韩
Contributor I

Just need some help, please.

0 Kudos
Reply
1 Solution
2,881 Views
igorpadykov
NXP Employee
NXP Employee

Hi

as described in sect.45.2.1 Software Operation attached Linux Manual:

Each UART can be configured to use DMA for the data transfer by enabling the DMA
channel in the DTS file.

imx6qdl.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
3 Replies
2,882 Views
igorpadykov
NXP Employee
NXP Employee

Hi

as described in sect.45.2.1 Software Operation attached Linux Manual:

Each UART can be configured to use DMA for the data transfer by enabling the DMA
channel in the DTS file.

imx6qdl.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
2,881 Views
志林韩
Contributor I

Status = "disabled" means that the dma function is disabled? I‘m a rookie -_-

uart2: serial@021e8000 {                     compatible = "fsl,imx6q-uart", "fsl,imx21-uart";                     reg = <0x021e8000 0x4000>;                     interrupts = <0 27 IRQ_TYPE_LEVEL_HIGH>;                     clocks = <&clks IMX6QDL_CLK_UART_IPG>,                           <&clks IMX6QDL_CLK_UART_SERIAL>;                     clock-names = "ipg", "per";                     dmas = <&sdma 27 4 0>, <&sdma 28 4 0>;                     dma-names = "rx", "tx";                     status = "disabled";                };
0 Kudos
Reply
1,900 Views
vivsundar
Contributor III

Finally how did you disable the DMA for UART.  Can you post it?

0 Kudos
Reply