Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: add vr41xx_siu_early_setup() for serial console

Add vr41xx_siu_early_setup() for serial console.

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Yoichi Yuasa and committed by
Linus Torvalds
baac5895 eb424fd2

+14 -1
+14 -1
drivers/serial/vr41xx_siu.c
··· 1 1 /* 2 2 * Driver for NEC VR4100 series Serial Interface Unit. 3 3 * 4 - * Copyright (C) 2004-2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> 4 + * Copyright (C) 2004-2008 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> 5 5 * 6 6 * Based on drivers/serial/8250.c, by Russell King. 7 7 * ··· 839 839 } 840 840 841 841 console_initcall(siu_console_init); 842 + 843 + void __init vr41xx_siu_early_setup(struct uart_port *port) 844 + { 845 + if (port->type == PORT_UNKNOWN) 846 + return; 847 + 848 + siu_uart_ports[port->line].line = port->line; 849 + siu_uart_ports[port->line].type = port->type; 850 + siu_uart_ports[port->line].uartclk = SIU_BAUD_BASE * 16; 851 + siu_uart_ports[port->line].mapbase = port->mapbase; 852 + siu_uart_ports[port->line].mapbase = port->mapbase; 853 + siu_uart_ports[port->line].ops = &siu_uart_ops; 854 + } 842 855 843 856 #define SERIAL_VR41XX_CONSOLE &siu_console 844 857 #else