Commit aad2d495 authored by Dai Okamura's avatar Dai Okamura Committed by Greg Kroah-Hartman
Browse files

serial: 8250_uniphier: add auto-flow-control support



Add selective auto-flow-control support for UniPhier serial driver.

Signed-off-by: default avatarDai Okamura <okamura.dai@socionext.com>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aca70d19
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@ Required properties:
- interrupts: a single interrupt specifier.
- clocks: phandle to the input clock.

Optional properties:
-auto-flow-control: enable automatic flow control support.

Example:
	aliases {
		serial0 = &serial0;
+3 −0
Original line number Diff line number Diff line
@@ -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;