2 * Copyright (C) 2005 Russell King.
3 * Data taken from include/asm-i386/serial.h
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 #include <linux/module.h>
10 #include <linux/init.h>
11 #include <linux/serial_8250.h>
13 #define PORT(_base,_irq) \
18 .iotype = UPIO_PORT, \
19 .flags = UPF_BOOT_AUTOCONF | UPF_FOURPORT, \
22 static struct plat_serial8250_port fourport_data
[] = {
34 static struct platform_device fourport_device
= {
36 .id
= PLAT8250_DEV_FOURPORT
,
38 .platform_data
= fourport_data
,
42 static int __init
fourport_init(void)
44 return platform_device_register(&fourport_device
);
47 module_init(fourport_init
);
49 MODULE_AUTHOR("Russell King");
50 MODULE_DESCRIPTION("8250 serial probe module for AST Fourport cards");
51 MODULE_LICENSE("GPL");