Skip to contentSkip to conversation

MIPS: Alchemy: UARTs are of type 16550A

PATCH In review Manuel Lauss 2 participants 2 messages Oct 28, 2009 – Nov 1, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 MIPS: Alchemy: UARTs are of type 16550A

UART autodetection breaks on the Au1300 but the IP blocks are identical, at least according to the datasheets. Help the 8250 driver by passing on uart type information via platform data.

---
On top of the other alchemy patches in mips-queue.

 arch/mips/alchemy/common/platform.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/mips/alchemy/common/platform.c +3 -1
index 195e5b3..3be14b0 100644
@@ -26,7 +26,9 @@
 		.irq		= _irq,				\
 		.regshift	= 2,				\
 		.iotype		= UPIO_AU,			\
-		.flags		= UPF_SKIP_TEST | UPF_IOREMAP	\
+		.flags		= UPF_SKIP_TEST | UPF_IOREMAP |	\
+				  UPF_FIXED_TYPE,		\
+		.type		= PORT_16550A,			\
 	}
 
 static struct plat_serial8250_port au1x00_uart_data[] = {
Signature · 1 line
1.6.5
#1 lore raw
Quoted 7 lines · Manuel Lauss

UART autodetection breaks on the Au1300 but the IP blocks are identical, at least according to the datasheets. Help the 8250 driver by passing on uart type information via platform data.

---
On top of the other alchemy patches in mips-queue.

Thanks, queued.

Ralf