0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <linux/module.h>
0010 #include <linux/init.h>
0011 #include <linux/serial_8250.h>
0012
0013 #include "8250.h"
0014
0015 static struct plat_serial8250_port exar_data[] = {
0016 SERIAL8250_PORT(0x100, 5),
0017 SERIAL8250_PORT(0x108, 5),
0018 SERIAL8250_PORT(0x110, 5),
0019 SERIAL8250_PORT(0x118, 5),
0020 { },
0021 };
0022
0023 static struct platform_device exar_device = {
0024 .name = "serial8250",
0025 .id = PLAT8250_DEV_EXAR_ST16C554,
0026 .dev = {
0027 .platform_data = exar_data,
0028 },
0029 };
0030
0031 static int __init exar_init(void)
0032 {
0033 return platform_device_register(&exar_device);
0034 }
0035
0036 module_init(exar_init);
0037
0038 MODULE_AUTHOR("Paul B Schroeder");
0039 MODULE_DESCRIPTION("8250 serial probe module for Exar cards");
0040 MODULE_LICENSE("GPL");