Commit 3ebe278d authored by Tom Rini's avatar Tom Rini Committed by Russell King

[SERIAL] Make the Startech UART detection 'more correct'

parent 624871f0
...@@ -469,8 +469,14 @@ static void autoconfig_16550a(struct uart_8250_port *up) ...@@ -469,8 +469,14 @@ static void autoconfig_16550a(struct uart_8250_port *up)
*/ */
serial_outp(up, UART_LCR, UART_LCR_DLAB); serial_outp(up, UART_LCR, UART_LCR_DLAB);
if (serial_in(up, UART_EFR) == 0) { if (serial_in(up, UART_EFR) == 0) {
DEBUG_AUTOCONF("EFRv1 "); serial_outp(up, UART_EFR, 0xA8);
up->port.type = PORT_16650; if (serial_in(up, UART_EFR) != 0) {
DEBUG_AUTOCONF("EFRv1 ");
up->port.type = PORT_16650;
} else {
DEBUG_AUTOCONF("Motorola 8xxx DUART ");
}
serial_outp(up, UART_EFR, 0);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment