/* We detected a chip without a FIFO. Only two fall into this category - the original 8250 and the 16450. The 16450 has a scratch register (accessible with LCR=0)  */
static void autoconfig_8250(struct uart_8250_port *up)
/* We detected a chip without a FIFO. Only two fall into this category - the original 8250 and the 16450. The 16450 has a scratch register (accessible with LCR=0)  */
static void autoconfig_8250(struct uart_8250_port *up)
{
	unsigned char scratch, status1, status2;
	up->port.type = PORT_8250;
	scratch = serial_in(up, UART_SCR);
	serial_outp(up, UART_SCR, 0xa5);
	status1 = serial_in(up, UART_SCR);
	serial_outp(up, UART_SCR, 0x5a);
	status2 = serial_in(up, UART_SCR);
	serial_outp(up, UART_SCR, scratch);
	if (status1 == 0xa5 && status2 == 0x5a)
		up->port.type = PORT_16450;
}