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
6 * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
8 #include <linux/init.h>
9 #include <linux/module.h>
10 #include <linux/serial_8250.h>
12 #include <asm/ddb5xxx/ddb5477.h>
14 #define DDB_UART_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP)
16 #define DDB5477_PORT(base, int) \
22 .flags = DDB_UART_FLAGS, \
26 static struct plat_serial8250_port uart8250_data[] = {
27 DDB5477_PORT(0xbfa04200, VRC5477_IRQ_UART0),
28 DDB5477_PORT(0xbfa04240, VRC5477_IRQ_UART1),
32 static struct platform_device uart8250_device = {
34 .id = PLAT8250_DEV_PLATFORM,
36 .platform_data = uart8250_data,
40 static int __init uart8250_init(void)
42 return platform_device_register(&uart8250_device);
45 module_init(uart8250_init);
47 MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
48 MODULE_LICENSE("GPL");
49 MODULE_DESCRIPTION("8250 UART probe driver for the NEC DDB5477");