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.

ソリューションへジャンプ
3,009件の閲覧回数
志林韩
Contributor I

Just need some help, please.

0 件の賞賛
返信
1 解決策
2,872件の閲覧回数
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,873件の閲覧回数
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,872件の閲覧回数
志林韩
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,891件の閲覧回数
vivsundar
Contributor III

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

0 件の賞賛
返信