Skip to contentSkip to conversation

AR7: use correct UART port type

PATCH Applied Florian Fainelli 2 participants 2 messages May 16, 2010 – May 21, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 AR7: use correct UART port type

PORT_AR7 has the correct TRIG flag (UART_FCR_R_TRIG_00) as well as UART_CAP_AFE being set. This fixes UART on TNETD7300 revision 0x02, which would otherwise mangle some characters, no side effects on other revisions.

---
 arch/mips/ar7/platform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/ar7/platform.c +1 -1
index 566f2d7..8f31d1d 100644
@@ -542,7 +542,7 @@ static int __init ar7_register_uarts(void)
 	if (IS_ERR(bus_clk))
 		panic("unable to get bus clk\n");
 
-	uart_port.type		= PORT_16550A;
+	uart_port.type		= PORT_AR7;
 	uart_port.uartclk	= clk_get_rate(bus_clk) / 2;
 	uart_port.iotype	= UPIO_MEM32;
 	uart_port.regshift	= 2;
Signature · 1 line
1.7.1
Applied
#1 lore raw

On Sun, May 16, 2010 at 03:25:17PM +0200, Florian Fainelli wrote:

Thanks, applied.

Ralf