| 1 | AR7: use correct UART port type |
| 2 | |
| 3 | PORT_AR7 has the correct TRIG flag (UART_FCR_R_TRIG_00) as well as UART_CAP_AFE |
| 4 | being set. This fixes kernel console on TNETD7300 revision 0x02 and has no side |
| 5 | effects on other revisions of the chip. |
| 6 | |
| 7 | Signed-off-by: Florian Fainelli <florian@openwrt.org> |
| 8 | |
| 9 | --- a/arch/mips/ar7/platform.c |
| 10 | +++ b/arch/mips/ar7/platform.c |
| 11 | @@ -509,7 +509,7 @@ static int __init ar7_register_devices(v |
| 12 | |
| 13 | memset(uart_port, 0, sizeof(struct uart_port) * 2); |
| 14 | |
| 15 | - uart_port[0].type = PORT_16550A; |
| 16 | + uart_port[0].type = PORT_AR7; |
| 17 | uart_port[0].line = 0; |
| 18 | uart_port[0].irq = AR7_IRQ_UART0; |
| 19 | uart_port[0].uartclk = ar7_bus_freq() / 2; |
| 20 | @@ -524,7 +524,7 @@ static int __init ar7_register_devices(v |
| 21 | |
| 22 | /* Only TNETD73xx have a second serial port */ |
| 23 | if (ar7_has_second_uart()) { |
| 24 | - uart_port[1].type = PORT_16550A; |
| 25 | + uart_port[1].type = PORT_AR7; |
| 26 | uart_port[1].line = 1; |
| 27 | uart_port[1].irq = AR7_IRQ_UART1; |
| 28 | uart_port[1].uartclk = ar7_bus_freq() / 2; |
| 29 | |