![]() |
|
|||
0001 /* 0002 * BRIEF MODULE DESCRIPTION 0003 * Serial port initialisation. 0004 * 0005 * Copyright 2004 IDT Inc. (rischelp@idt.com) 0006 * 0007 * This program is free software; you can redistribute it and/or modify it 0008 * under the terms of the GNU General Public License as published by the 0009 * Free Software Foundation; either version 2 of the License, or (at your 0010 * option) any later version. 0011 * 0012 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 0013 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 0014 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 0015 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0016 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 0017 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 0018 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 0019 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0020 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 0021 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0022 * 0023 * You should have received a copy of the GNU General Public License along 0024 * with this program; if not, write to the Free Software Foundation, Inc., 0025 * 675 Mass Ave, Cambridge, MA 02139, USA. 0026 */ 0027 0028 #include <linux/init.h> 0029 #include <linux/tty.h> 0030 #include <linux/serial_core.h> 0031 #include <linux/serial_8250.h> 0032 #include <linux/irq.h> 0033 0034 #include <asm/serial.h> 0035 #include <asm/mach-rc32434/rb.h> 0036 0037 extern unsigned int idt_cpu_freq; 0038 0039 static struct uart_port rb532_uart = { 0040 .flags = UPF_BOOT_AUTOCONF, 0041 .line = 0, 0042 .irq = UART0_IRQ, 0043 .iotype = UPIO_MEM, 0044 .membase = (char *)KSEG1ADDR(REGBASE + UART0BASE), 0045 .regshift = 2 0046 }; 0047 0048 int __init setup_serial_port(void) 0049 { 0050 rb532_uart.uartclk = idt_cpu_freq; 0051 0052 return early_serial_setup(&rb532_uart); 0053 } 0054 arch_initcall(setup_serial_port);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |