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/mca.h>
12 #include <linux/serial_8250.h>
15 * FIXME: Should we be doing AUTO_IRQ here?
17 #ifdef CONFIG_SERIAL_8250_DETECT_IRQ
18 #define MCA_FLAGS UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ
20 #define MCA_FLAGS UPF_BOOT_AUTOCONF | UPF_SKIP_TEST
23 #define PORT(_base,_irq) \
28 .iotype = UPIO_PORT, \
32 static struct plat_serial8250_port mca_data
[] = {
42 static struct platform_device mca_device
= {
44 .id
= PLAT8250_DEV_MCA
,
46 .platform_data
= mca_data
,
50 static int __init
mca_init(void)
54 return platform_device_register(&mca_device
);
57 module_init(mca_init
);
59 MODULE_AUTHOR("Russell King");
60 MODULE_DESCRIPTION("8250 serial probe module for MCA ports");
61 MODULE_LICENSE("GPL");