summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2013-04-10 16:58:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-11 13:21:17 -0700
commit2920adb6dfeded0b835a809a1a2c5772d97e5965 (patch)
treea05522d8323bd4876c9537dc37e491d8173d7c86 /drivers/tty
parent94b2b47cf68ce4633a1dbe9d221617404b5de03b (diff)
downloadlinux-3.10-2920adb6dfeded0b835a809a1a2c5772d97e5965.tar.gz
linux-3.10-2920adb6dfeded0b835a809a1a2c5772d97e5965.tar.bz2
linux-3.10-2920adb6dfeded0b835a809a1a2c5772d97e5965.zip
serial: 8250_dw: Set port capabilities based on CPR register
The Designware UART has an optional support for 16750 compatible Auto Flow Control. This will enable it based on the AFCE bit in Component Parameter Register. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_dw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index 09aaea2d3a6..b7c7d6a6cad 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -221,7 +221,11 @@ static void dw8250_setup_port(struct uart_8250_port *up)
p->flags |= UPF_FIXED_TYPE;
p->fifosize = DW_UART_CPR_FIFO_SIZE(reg);
up->tx_loadsz = p->fifosize;
+ up->capabilities = UART_CAP_FIFO;
}
+
+ if (reg & DW_UART_CPR_AFCE_MODE)
+ up->capabilities |= UART_CAP_AFE;
}
static int dw8250_probe(struct platform_device *pdev)