aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9g45_devices.c
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2014-05-13 14:20:44 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 15:49:44 -0400
commite0b0baadb7a4509bdcd5ba37d0be61e2c4bb0d48 (patch)
treeea9d6937dddf11ed65c8b9c2f8847213f73e2d2e /arch/arm/mach-at91/at91sam9g45_devices.c
parent84130aace83989c1dba073ed98dad721d2060258 (diff)
tty/serial: at91: use mctrl_gpio helpers
On sam9x5, dedicated CTS (and RTS) pins are unusable together with the LCDC, the EMAC, or the MMC because they share the same line. Moreover, the USART controller doesn't handle DTR/DSR/DCD/RI signals, so we have to control them via GPIO. This patch permits to use GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9g45_devices.c')
-rw-r--r--arch/arm/mach-at91/at91sam9g45_devices.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c
index dab362c06487..4dfedd3f2e15 100644
--- a/arch/arm/mach-at91/at91sam9g45_devices.c
+++ b/arch/arm/mach-at91/at91sam9g45_devices.c
@@ -1588,7 +1588,6 @@ static struct resource dbgu_resources[] = {
1588static struct atmel_uart_data dbgu_data = { 1588static struct atmel_uart_data dbgu_data = {
1589 .use_dma_tx = 0, 1589 .use_dma_tx = 0,
1590 .use_dma_rx = 0, 1590 .use_dma_rx = 0,
1591 .rts_gpio = -EINVAL,
1592}; 1591};
1593 1592
1594static u64 dbgu_dmamask = DMA_BIT_MASK(32); 1593static u64 dbgu_dmamask = DMA_BIT_MASK(32);
@@ -1627,7 +1626,6 @@ static struct resource uart0_resources[] = {
1627static struct atmel_uart_data uart0_data = { 1626static struct atmel_uart_data uart0_data = {
1628 .use_dma_tx = 1, 1627 .use_dma_tx = 1,
1629 .use_dma_rx = 1, 1628 .use_dma_rx = 1,
1630 .rts_gpio = -EINVAL,
1631}; 1629};
1632 1630
1633static u64 uart0_dmamask = DMA_BIT_MASK(32); 1631static u64 uart0_dmamask = DMA_BIT_MASK(32);
@@ -1671,7 +1669,6 @@ static struct resource uart1_resources[] = {
1671static struct atmel_uart_data uart1_data = { 1669static struct atmel_uart_data uart1_data = {
1672 .use_dma_tx = 1, 1670 .use_dma_tx = 1,
1673 .use_dma_rx = 1, 1671 .use_dma_rx = 1,
1674 .rts_gpio = -EINVAL,
1675}; 1672};
1676 1673
1677static u64 uart1_dmamask = DMA_BIT_MASK(32); 1674static u64 uart1_dmamask = DMA_BIT_MASK(32);
@@ -1715,7 +1712,6 @@ static struct resource uart2_resources[] = {
1715static struct atmel_uart_data uart2_data = { 1712static struct atmel_uart_data uart2_data = {
1716 .use_dma_tx = 1, 1713 .use_dma_tx = 1,
1717 .use_dma_rx = 1, 1714 .use_dma_rx = 1,
1718 .rts_gpio = -EINVAL,
1719}; 1715};
1720 1716
1721static u64 uart2_dmamask = DMA_BIT_MASK(32); 1717static u64 uart2_dmamask = DMA_BIT_MASK(32);
@@ -1759,7 +1755,6 @@ static struct resource uart3_resources[] = {
1759static struct atmel_uart_data uart3_data = { 1755static struct atmel_uart_data uart3_data = {
1760 .use_dma_tx = 1, 1756 .use_dma_tx = 1,
1761 .use_dma_rx = 1, 1757 .use_dma_rx = 1,
1762 .rts_gpio = -EINVAL,
1763}; 1758};
1764 1759
1765static u64 uart3_dmamask = DMA_BIT_MASK(32); 1760static u64 uart3_dmamask = DMA_BIT_MASK(32);