aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-footbridge/isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-footbridge/isa.c')
-rw-r--r--arch/arm/mach-footbridge/isa.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-footbridge/isa.c b/arch/arm/mach-footbridge/isa.c
new file mode 100644
index 000000000000..aa3a1fef563e
--- /dev/null
+++ b/arch/arm/mach-footbridge/isa.c
@@ -0,0 +1,48 @@
1/*
2 * linux/arch/arm/mach-footbridge/isa.c
3 *
4 * Copyright (C) 2004 Russell King.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10#include <linux/init.h>
11#include <linux/serial_8250.h>
12
13#include <asm/irq.h>
14
15static struct plat_serial8250_port serial_platform_data[] = {
16 {
17 .iobase = 0x3f8,
18 .irq = IRQ_ISA_UART,
19 .uartclk = 1843200,
20 .regshift = 0,
21 .iotype = UPIO_PORT,
22 .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
23 },
24 {
25 .iobase = 0x2f8,
26 .irq = IRQ_ISA_UART2,
27 .uartclk = 1843200,
28 .regshift = 0,
29 .iotype = UPIO_PORT,
30 .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
31 },
32 { },
33};
34
35static struct platform_device serial_device = {
36 .name = "serial8250",
37 .id = 0,
38 .dev = {
39 .platform_data = serial_platform_data,
40 },
41};
42
43static int __init footbridge_isa_init(void)
44{
45 return platform_device_register(&serial_device);
46}
47
48arch_initcall(footbridge_isa_init);