[MIPS] Fulong: Remove unneeded header file
[safe/jmp/linux-2.6] / arch / mips / ddb5xxx / ddb5477 / ddb5477-platform.c
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
7  */
8 #include <linux/init.h>
9 #include <linux/module.h>
10 #include <linux/serial_8250.h>
11
12 #include <asm/ddb5xxx/ddb5477.h>
13
14 #define DDB_UART_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP)
15
16 #define DDB5477_PORT(base, int)                                         \
17 {                                                                       \
18         .mapbase        = base,                                         \
19         .irq            = int,                                          \
20         .uartclk        = 1843200,                                      \
21         .iotype         = UPIO_MEM,                                     \
22         .flags          = DDB_UART_FLAGS,                               \
23         .regshift       = 3,                                            \
24 }
25
26 static struct plat_serial8250_port uart8250_data[] = {
27         DDB5477_PORT(0xbfa04200, VRC5477_IRQ_UART0),
28         DDB5477_PORT(0xbfa04240, VRC5477_IRQ_UART1),
29         { },
30 };
31
32 static struct platform_device uart8250_device = {
33         .name                   = "serial8250",
34         .id                     = PLAT8250_DEV_PLATFORM,
35         .dev                    = {
36                 .platform_data  = uart8250_data,
37         },
38 };
39
40 static int __init uart8250_init(void)
41 {
42         return platform_device_register(&uart8250_device);
43 }
44
45 module_init(uart8250_init);
46
47 MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
48 MODULE_LICENSE("GPL");
49 MODULE_DESCRIPTION("8250 UART probe driver for the NEC DDB5477");