提交 baac5895 编写于 作者: Y Yoichi Yuasa 提交者: Linus Torvalds

serial: add vr41xx_siu_early_setup() for serial console

Add vr41xx_siu_early_setup() for serial console.
Signed-off-by: NYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 eb424fd2
/* /*
* Driver for NEC VR4100 series Serial Interface Unit. * Driver for NEC VR4100 series Serial Interface Unit.
* *
* Copyright (C) 2004-2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> * Copyright (C) 2004-2008 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
* *
* Based on drivers/serial/8250.c, by Russell King. * Based on drivers/serial/8250.c, by Russell King.
* *
...@@ -840,6 +840,19 @@ static int __devinit siu_console_init(void) ...@@ -840,6 +840,19 @@ static int __devinit siu_console_init(void)
console_initcall(siu_console_init); console_initcall(siu_console_init);
void __init vr41xx_siu_early_setup(struct uart_port *port)
{
if (port->type == PORT_UNKNOWN)
return;
siu_uart_ports[port->line].line = port->line;
siu_uart_ports[port->line].type = port->type;
siu_uart_ports[port->line].uartclk = SIU_BAUD_BASE * 16;
siu_uart_ports[port->line].mapbase = port->mapbase;
siu_uart_ports[port->line].mapbase = port->mapbase;
siu_uart_ports[port->line].ops = &siu_uart_ops;
}
#define SERIAL_VR41XX_CONSOLE &siu_console #define SERIAL_VR41XX_CONSOLE &siu_console
#else #else
#define SERIAL_VR41XX_CONSOLE NULL #define SERIAL_VR41XX_CONSOLE NULL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册