0001
0002
0003
0004
0005
0006 #include <linux/module.h>
0007 #include <linux/init.h>
0008 #include <linux/serial_8250.h>
0009
0010 #include "8250.h"
0011
0012 #define SERIAL8250_FOURPORT(_base, _irq) \
0013 SERIAL8250_PORT_FLAGS(_base, _irq, UPF_FOURPORT)
0014
0015 static struct plat_serial8250_port fourport_data[] = {
0016 SERIAL8250_FOURPORT(0x1a0, 9),
0017 SERIAL8250_FOURPORT(0x1a8, 9),
0018 SERIAL8250_FOURPORT(0x1b0, 9),
0019 SERIAL8250_FOURPORT(0x1b8, 9),
0020 SERIAL8250_FOURPORT(0x2a0, 5),
0021 SERIAL8250_FOURPORT(0x2a8, 5),
0022 SERIAL8250_FOURPORT(0x2b0, 5),
0023 SERIAL8250_FOURPORT(0x2b8, 5),
0024 { },
0025 };
0026
0027 static struct platform_device fourport_device = {
0028 .name = "serial8250",
0029 .id = PLAT8250_DEV_FOURPORT,
0030 .dev = {
0031 .platform_data = fourport_data,
0032 },
0033 };
0034
0035 static int __init fourport_init(void)
0036 {
0037 return platform_device_register(&fourport_device);
0038 }
0039
0040 module_init(fourport_init);
0041
0042 MODULE_AUTHOR("Russell King");
0043 MODULE_DESCRIPTION("8250 serial probe module for AST Fourport cards");
0044 MODULE_LICENSE("GPL");