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/module.h>
9 #include <linux/init.h>
10 #include <linux/serial_8250.h>
12 #define PORT(base, int) \
17 .iotype = UPIO_PORT, \
18 .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, \
22 static struct plat_serial8250_port uart8250_data[] = {
30 static struct platform_device uart8250_device = {
32 .id = PLAT8250_DEV_PLATFORM,
34 .platform_data = uart8250_data,
38 static int __init uart8250_init(void)
40 return platform_device_register(&uart8250_device);
43 module_init(uart8250_init);
45 MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
46 MODULE_LICENSE("GPL");
47 MODULE_DESCRIPTION("Generic 8250 UART probe driver");