Lines 470-477
Link Here
|
470 |
{ |
470 |
{ |
471 |
unsigned char status1, status2; |
471 |
unsigned char status1, status2; |
472 |
|
472 |
|
473 |
up->port.type = PORT_16550A; |
|
|
474 |
|
475 |
/* |
473 |
/* |
476 |
* Check for presence of the EFR when DLAB is set. |
474 |
* Check for presence of the EFR when DLAB is set. |
477 |
* Only ST16C650V1 UARTs pass this test. |
475 |
* Only ST16C650V1 UARTs pass this test. |
Lines 675-681
Link Here
|
675 |
up->port.type = PORT_16550; |
673 |
up->port.type = PORT_16550; |
676 |
break; |
674 |
break; |
677 |
case 3: |
675 |
case 3: |
678 |
autoconfig_16550a(up); |
676 |
up->port.type = PORT_16550A; |
|
|
677 |
|
678 |
/* If this port is a console, probing is likely to damage something, |
679 |
* and we probably would not need this kind of probing anyways, or the |
680 |
* console would not work. */ |
681 |
if (!uart_console(&up->port)) |
682 |
autoconfig_16550a(up); |
679 |
break; |
683 |
break; |
680 |
} |
684 |
} |
681 |
|
685 |
|