Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94090
b: refs/heads/master
c: baac589
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Linus Torvalds committed Apr 28, 2008
1 parent de5fd36 commit 01ce81e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb424fd21c0931e998156225f2a0910167c3e16c
refs/heads/master: baac58955d6933571f29126a1a95299b421faef7
15 changes: 14 additions & 1 deletion trunk/drivers/serial/vr41xx_siu.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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.
*
Expand Down Expand Up @@ -840,6 +840,19 @@ static int __devinit siu_console_init(void)

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
#else
#define SERIAL_VR41XX_CONSOLE NULL
Expand Down

0 comments on commit 01ce81e

Please sign in to comment.