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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,427 次查看
志林韩
Contributor I

Just need some help, please.

0 项奖励
1 解答
2,290 次查看
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 项奖励
3 回复数
2,291 次查看
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 项奖励
2,290 次查看
志林韩
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 项奖励
1,309 次查看
vivsundar
Contributor III

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

0 项奖励