aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-06-03 12:00:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-25 09:07:51 -0700
commit861a70abb483645d4474a6bc006471c2db59a78d (patch)
tree5c60871c701e654fe918f7c187e9c33663c465ab /drivers/tty/serial/sh-sci.c
parentserial: sh-sci: Fix support for hardware-assisted RTS/CTS (diff)
downloadlinux-dev-861a70abb483645d4474a6bc006471c2db59a78d.tar.xz
linux-dev-861a70abb483645d4474a6bc006471c2db59a78d.zip
serial: sh-sci: Add DT support for dedicated RTS/CTS
Add support for indicating the availability of dedicated lines for RTS/CTS hardware flow control, using the standard "uart-has-rtscts" DT property. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r--drivers/tty/serial/sh-sci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 02b240a02dc6..d9cb0d70fcee 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -2999,6 +2999,9 @@ sci_parse_dt(struct platform_device *pdev, unsigned int *dev_id)
p->regtype = SCI_OF_REGTYPE(match->data);
p->scscr = SCSCR_RE | SCSCR_TE;
+ if (of_find_property(np, "uart-has-rtscts", NULL))
+ p->capabilities |= SCIx_HAVE_RTSCTS;
+
return p;
}