Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965001AbYCSUw1 (ORCPT ); Wed, 19 Mar 2008 16:52:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758747AbYCSTqj (ORCPT ); Wed, 19 Mar 2008 15:46:39 -0400 Received: from mfo32.po.2iij.NET ([210.128.50.15]:12035 "EHLO mfo32.po.2iij.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753875AbYCSTqi (ORCPT ); Wed, 19 Mar 2008 15:46:38 -0400 Message-Id: <200803182251.m2IMphhQ013534@po-mbox302.po.2iij.net> Date: Wed, 19 Mar 2008 07:49:57 +0900 From: Yoichi Yuasa To: Andrew Morton Cc: yoichi_yuasa@tripeaks.co.jp, Ralf Baechle , Linux Kernel Mailing List , linux-mips Subject: [PATCH 1/2] add vr41xx_siu_early_setup() for serial console Organization: TriPeaks Corporation X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.8.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1526 Lines: 41 Add vr41xx_siu_early_setup() for serial console Signed-off-by: Yoichi Yuasa diff -pruN -X /home/yuasa/Memo/dontdiff linux-orig/drivers/serial/vr41xx_siu.c linux/drivers/serial/vr41xx_siu.c --- linux-orig/drivers/serial/vr41xx_siu.c 2008-03-12 17:03:43.420462106 +0900 +++ linux/drivers/serial/vr41xx_siu.c 2008-03-12 17:03:38.730540709 +0900 @@ -1,7 +1,7 @@ /* * Driver for NEC VR4100 series Serial Interface Unit. * - * Copyright (C) 2004-2007 Yoichi Yuasa + * Copyright (C) 2004-2008 Yoichi Yuasa * * Based on drivers/serial/8250.c, by Russell King. * @@ -840,6 +840,19 @@ static int __devinit siu_console_init(vo 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/