diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/serial/8250_mca.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/serial/8250_mca.c')
-rw-r--r-- | drivers/serial/8250_mca.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/drivers/serial/8250_mca.c b/drivers/serial/8250_mca.c deleted file mode 100644 index d10be944ad44..000000000000 --- a/drivers/serial/8250_mca.c +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /* | ||
2 | * linux/drivers/serial/8250_mca.c | ||
3 | * | ||
4 | * Copyright (C) 2005 Russell King. | ||
5 | * Data taken from include/asm-i386/serial.h | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | #include <linux/module.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/mca.h> | ||
14 | #include <linux/serial_8250.h> | ||
15 | |||
16 | /* | ||
17 | * FIXME: Should we be doing AUTO_IRQ here? | ||
18 | */ | ||
19 | #ifdef CONFIG_SERIAL_8250_DETECT_IRQ | ||
20 | #define MCA_FLAGS UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ | ||
21 | #else | ||
22 | #define MCA_FLAGS UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | ||
23 | #endif | ||
24 | |||
25 | #define PORT(_base,_irq) \ | ||
26 | { \ | ||
27 | .iobase = _base, \ | ||
28 | .irq = _irq, \ | ||
29 | .uartclk = 1843200, \ | ||
30 | .iotype = UPIO_PORT, \ | ||
31 | .flags = MCA_FLAGS, \ | ||
32 | } | ||
33 | |||
34 | static struct plat_serial8250_port mca_data[] = { | ||
35 | PORT(0x3220, 3), | ||
36 | PORT(0x3228, 3), | ||
37 | PORT(0x4220, 3), | ||
38 | PORT(0x4228, 3), | ||
39 | PORT(0x5220, 3), | ||
40 | PORT(0x5228, 3), | ||
41 | { }, | ||
42 | }; | ||
43 | |||
44 | static struct platform_device mca_device = { | ||
45 | .name = "serial8250", | ||
46 | .id = PLAT8250_DEV_MCA, | ||
47 | .dev = { | ||
48 | .platform_data = mca_data, | ||
49 | }, | ||
50 | }; | ||
51 | |||
52 | static int __init mca_init(void) | ||
53 | { | ||
54 | if (!MCA_bus) | ||
55 | return -ENODEV; | ||
56 | return platform_device_register(&mca_device); | ||
57 | } | ||
58 | |||
59 | module_init(mca_init); | ||
60 | |||
61 | MODULE_AUTHOR("Russell King"); | ||
62 | MODULE_DESCRIPTION("8250 serial probe module for MCA ports"); | ||
63 | MODULE_LICENSE("GPL"); | ||