aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFugang Duan <b38611@freescale.com>2014-07-14 00:29:27 -0400
committerFugang Duan <b38611@freescale.com>2014-07-14 01:09:22 -0400
commit0aff01ab8c643c004284e6c81dfd57934d5507d9 (patch)
treecbbfcb9c623b5e52b3d1101f34649720781a4762
parent32d6d05fd0617eaed11942025f75e4904c9962d3 (diff)
ENGR00322581-05 tty: serial: imx: Revert "tty: serial: imx: set uart to cpu mode by default"
Since uart SDMA can work for Atheros BT module in android environment, the previous patch (commit f337845718) disable SDMA mode in default, now revert the patch to avoid the big change in dts for all platforms. By default, we enable SDMA mode for uart. Signed-off-by: Fugang Duan <B38611@freescale.com>
-rw-r--r--Documentation/devicetree/bindings/tty/serial/fsl-imx-uart.txt2
-rw-r--r--drivers/tty/serial/imx.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/tty/serial/fsl-imx-uart.txt b/Documentation/devicetree/bindings/tty/serial/fsl-imx-uart.txt
index 17fd9bc716ec..c662eb36be29 100644
--- a/Documentation/devicetree/bindings/tty/serial/fsl-imx-uart.txt
+++ b/Documentation/devicetree/bindings/tty/serial/fsl-imx-uart.txt
@@ -10,8 +10,6 @@ Optional properties:
10- fsl,irda-mode : Indicate the uart supports irda mode 10- fsl,irda-mode : Indicate the uart supports irda mode
11- fsl,dte-mode : Indicate the uart works in DTE mode. The uart works 11- fsl,dte-mode : Indicate the uart works in DTE mode. The uart works
12 is DCE mode by default. 12 is DCE mode by default.
13- fsl,dma-mode : Indicate the uart works in dma mode. The uart works
14 is cpu mode by default.
15 13
16Example: 14Example:
17 15
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 1570934978d7..efee6496f1ee 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -208,7 +208,6 @@ struct imx_port {
208 unsigned int have_rtscts:1; 208 unsigned int have_rtscts:1;
209 unsigned int dte_mode:1; 209 unsigned int dte_mode:1;
210 unsigned int use_irda:1; 210 unsigned int use_irda:1;
211 unsigned int dma_mode:1;
212 unsigned int irda_inv_rx:1; 211 unsigned int irda_inv_rx:1;
213 unsigned int irda_inv_tx:1; 212 unsigned int irda_inv_tx:1;
214 unsigned short trcv_delay; /* transceiver delay */ 213 unsigned short trcv_delay; /* transceiver delay */
@@ -1387,7 +1386,7 @@ imx_set_termios(struct uart_port *port, struct ktermios *termios,
1387 1386
1388 /* Can we enable the DMA support? */ 1387 /* Can we enable the DMA support? */
1389 if (is_imx6q_uart(sport) && !uart_console(port) 1388 if (is_imx6q_uart(sport) && !uart_console(port)
1390 && !sport->dma_is_inited && sport->dma_mode) 1389 && !sport->dma_is_inited)
1391 imx_uart_dma_init(sport); 1390 imx_uart_dma_init(sport);
1392 } else { 1391 } else {
1393 termios->c_cflag &= ~CRTSCTS; 1392 termios->c_cflag &= ~CRTSCTS;
@@ -1950,9 +1949,6 @@ static int serial_imx_probe_dt(struct imx_port *sport,
1950 if (of_get_property(np, "fsl,dte-mode", NULL)) 1949 if (of_get_property(np, "fsl,dte-mode", NULL))
1951 sport->dte_mode = 1; 1950 sport->dte_mode = 1;
1952 1951
1953 if (of_get_property(np, "fsl,dma-mode", NULL))
1954 sport->dma_mode = 1;
1955
1956 sport->devdata = of_id->data; 1952 sport->devdata = of_id->data;
1957 1953
1958 return 0; 1954 return 0;