blob: 3a7cb8262bb9fa2701051d19f89a3354dd3e2e25 [file] [log] [blame]
Paul B Schroedere0980da2006-12-06 20:37:03 -08001/*
Paul B Schroedere0980da2006-12-06 20:37:03 -08002 * Written by Paul B Schroeder < pschroeder "at" uplogix "dot" com >
3 * Based on 8250_boca.
4 *
5 * Copyright (C) 2005 Russell King.
6 * Data taken from include/asm-i386/serial.h
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12#include <linux/module.h>
13#include <linux/init.h>
14#include <linux/serial_8250.h>
15
Anton Wuerfelb3bd6662016-01-14 16:08:24 +010016#include "8250.h"
Paul B Schroedere0980da2006-12-06 20:37:03 -080017
18static struct plat_serial8250_port exar_data[] = {
Anton Wuerfelb3bd6662016-01-14 16:08:24 +010019 SERIAL8250_PORT(0x100, 5),
20 SERIAL8250_PORT(0x108, 5),
21 SERIAL8250_PORT(0x110, 5),
22 SERIAL8250_PORT(0x118, 5),
Paul B Schroedere0980da2006-12-06 20:37:03 -080023 { },
24};
25
26static struct platform_device exar_device = {
27 .name = "serial8250",
28 .id = PLAT8250_DEV_EXAR_ST16C554,
29 .dev = {
30 .platform_data = exar_data,
31 },
32};
33
34static int __init exar_init(void)
35{
36 return platform_device_register(&exar_device);
37}
38
39module_init(exar_init);
40
41MODULE_AUTHOR("Paul B Schroeder");
42MODULE_DESCRIPTION("8250 serial probe module for Exar cards");
43MODULE_LICENSE("GPL");