Linux 3.3-rc1
[zen-stable.git] / drivers / tty / serial / 8250_exar_st16c554.c
blobbf53aabf9b5e34919c9967f6d7e94106b04738b1
1 /*
2 * Written by Paul B Schroeder < pschroeder "at" uplogix "dot" com >
3 * Based on 8250_boca.
5 * Copyright (C) 2005 Russell King.
6 * Data taken from include/asm-i386/serial.h
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.
12 #include <linux/module.h>
13 #include <linux/init.h>
14 #include <linux/serial_8250.h>
16 #define PORT(_base,_irq) \
17 { \
18 .iobase = _base, \
19 .irq = _irq, \
20 .uartclk = 1843200, \
21 .iotype = UPIO_PORT, \
22 .flags = UPF_BOOT_AUTOCONF, \
25 static struct plat_serial8250_port exar_data[] = {
26 PORT(0x100, 5),
27 PORT(0x108, 5),
28 PORT(0x110, 5),
29 PORT(0x118, 5),
30 { },
33 static struct platform_device exar_device = {
34 .name = "serial8250",
35 .id = PLAT8250_DEV_EXAR_ST16C554,
36 .dev = {
37 .platform_data = exar_data,
41 static int __init exar_init(void)
43 return platform_device_register(&exar_device);
46 module_init(exar_init);
48 MODULE_AUTHOR("Paul B Schroeder");
49 MODULE_DESCRIPTION("8250 serial probe module for Exar cards");
50 MODULE_LICENSE("GPL");