Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2920adb6 authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Greg Kroah-Hartman
Browse files

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: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 94b2b47c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -221,7 +221,11 @@ static void dw8250_setup_port(struct uart_8250_port *up)
		p->flags |= UPF_FIXED_TYPE;
		p->flags |= UPF_FIXED_TYPE;
		p->fifosize = DW_UART_CPR_FIFO_SIZE(reg);
		p->fifosize = DW_UART_CPR_FIFO_SIZE(reg);
		up->tx_loadsz = p->fifosize;
		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)
static int dw8250_probe(struct platform_device *pdev)