1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Written by Paul B Schroeder < pschroeder "at" uplogix "dot" com >
4 * Based on 8250_boca.
5 *
6 * Copyright (C) 2005 Russell King.
7 * Data taken from include/asm-i386/serial.h
8 */
9 #include <linux/module.h>
10 #include <linux/init.h>
11 #include <linux/serial_8250.h>
12
13 #include "8250.h"
14
15 static struct plat_serial8250_port exar_data[] = {
16 SERIAL8250_PORT(0x100, 5),
17 SERIAL8250_PORT(0x108, 5),
18 SERIAL8250_PORT(0x110, 5),
19 SERIAL8250_PORT(0x118, 5),
20 { },
21 };
22
23 static struct platform_device exar_device = {
24 .name = "serial8250",
25 .id = PLAT8250_DEV_EXAR_ST16C554,
26 .dev = {
27 .platform_data = exar_data,
28 },
29 };
30
exar_init(void)31 static int __init exar_init(void)
32 {
33 return platform_device_register(&exar_device);
34 }
35
36 module_init(exar_init);
37
38 MODULE_AUTHOR("Paul B Schroeder");
39 MODULE_DESCRIPTION("8250 serial probe module for Exar cards");
40 MODULE_LICENSE("GPL");
41