summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorDai Okamura <okamura.dai@socionext.com>2018-09-28 04:05:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-02 22:38:58 +0200
commitaad2d4952d24d8910d9fc64da9107df0fb780a09 (patch)
tree07f689acbe3122585adbfa60f8cc04cd1c7d7595 /drivers/tty
parentserial: 8250_uniphier: flatten probe function (diff)
downloadlinux-aad2d4952d24d8910d9fc64da9107df0fb780a09.tar.xz
linux-aad2d4952d24d8910d9fc64da9107df0fb780a09.zip
serial: 8250_uniphier: add auto-flow-control support
Add selective auto-flow-control support for UniPhier serial driver. Signed-off-by: Dai Okamura <okamura.dai@socionext.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_uniphier.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_uniphier.c b/drivers/tty/serial/8250/8250_uniphier.c
index 1028c02c5d83..164ba133437a 100644
--- a/drivers/tty/serial/8250/8250_uniphier.c
+++ b/drivers/tty/serial/8250/8250_uniphier.c
@@ -222,6 +222,9 @@ static int uniphier_uart_probe(struct platform_device *pdev)
up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE;
up.capabilities = UART_CAP_FIFO;
+ if (of_property_read_bool(dev->of_node, "auto-flow-control"))
+ up.capabilities |= UART_CAP_AFE;
+
up.port.serial_in = uniphier_serial_in;
up.port.serial_out = uniphier_serial_out;
up.dl_read = uniphier_serial_dl_read;