All pastes #941606 Raw Edit

AR7 serial fix

public diff v1 · immutable
·published 2008-03-13 20:31 UTC
rendered paste body
Index: target/linux/ar7/files/arch/mips/ar7/platform.c===================================================================--- target/linux/ar7/files/arch/mips/ar7/platform.c	(revision 10602)+++ target/linux/ar7/files/arch/mips/ar7/platform.c	(working copy)@@ -289,7 +289,7 @@ 	.mapbase = AR7_REGS_UART0, 	.irq = AR7_IRQ_UART0, 	.regshift = 2,-	.iotype = UPIO_MEM,+	.iotype = UPIO_MEM32, 	.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, }; @@ -297,7 +297,7 @@ 	.mapbase = UR8_REGS_UART1, 	.irq = AR7_IRQ_UART1, 	.regshift = 2,-	.iotype = UPIO_MEM,+	.iotype = UPIO_MEM32, 	.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, }; @@ -445,11 +445,11 @@  	memset(uart_port, 0, sizeof(struct uart_port) * 2); -	uart_port[0].type = PORT_AR7;+	uart_port[0].type = PORT_16550; 	uart_port[0].line = 0; 	uart_port[0].irq = AR7_IRQ_UART0; 	uart_port[0].uartclk = ar7_bus_freq() / 2;-	uart_port[0].iotype = UPIO_MEM;+	uart_port[0].iotype = UPIO_MEM32; 	uart_port[0].mapbase = AR7_REGS_UART0; 	uart_port[0].membase = ioremap(uart_port[0].mapbase, 256); 	uart_port[0].regshift = 2;@@ -460,11 +460,11 @@  	/* Only TNETD73xx have a second serial port */ 	if (ar7_has_second_uart()) {-		uart_port[1].type = PORT_AR7;+		uart_port[1].type = PORT_16550; 		uart_port[1].line = 1; 		uart_port[1].irq = AR7_IRQ_UART1; 		uart_port[1].uartclk = ar7_bus_freq() / 2;-		uart_port[1].iotype = UPIO_MEM;+		uart_port[1].iotype = UPIO_MEM32; 		uart_port[1].mapbase = UR8_REGS_UART1; 		uart_port[1].membase = ioremap(uart_port[1].mapbase, 256); 		uart_port[1].regshift = 2;