serial: bfin-sport-uart: Add tty ASYNC_CTS_FLOW flag to do CTS flow control.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Sonic Zhang 2011-12-06 16:22:34 +08:00 committed by Greg Kroah-Hartman
parent dc8f3703e7
commit cee3948d12
1 changed files with 3 additions and 1 deletions

View File

@ -810,8 +810,10 @@ static int __devinit sport_uart_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (res == NULL)
sport->cts_pin = -1;
else
else {
sport->cts_pin = res->start;
sport->port.flags |= ASYNC_CTS_FLOW;
}
res = platform_get_resource(pdev, IORESOURCE_IO, 1);
if (res == NULL)