diff options
Diffstat (limited to 'arch/arm/mach-epxa10db/arch.c')
-rw-r--r-- | arch/arm/mach-epxa10db/arch.c | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/arch/arm/mach-epxa10db/arch.c b/arch/arm/mach-epxa10db/arch.c new file mode 100644 index 000000000000..1b40340e8a21 --- /dev/null +++ b/arch/arm/mach-epxa10db/arch.c | |||
@@ -0,0 +1,72 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-epxa10db/arch.c | ||
3 | * | ||
4 | * Copyright (C) 2000 Deep Blue Solutions Ltd | ||
5 | * Copyright (C) 2001 Altera Corporation | ||
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 as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | #include <linux/types.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <linux/serial_8250.h> | ||
24 | |||
25 | #include <asm/hardware.h> | ||
26 | #include <asm/setup.h> | ||
27 | #include <asm/mach-types.h> | ||
28 | |||
29 | #include <asm/mach/arch.h> | ||
30 | |||
31 | static struct plat_serial8250_port serial_platform_data[] = { | ||
32 | { | ||
33 | .iobase = 0x3f8, | ||
34 | .irq = IRQ_UARTINT0, | ||
35 | #error FIXME | ||
36 | .uartclk = 0, | ||
37 | .regshift = 0, | ||
38 | .iotype = UPIO_PORT, | ||
39 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, | ||
40 | }, | ||
41 | { | ||
42 | .iobase = 0x2f8, | ||
43 | .irq = IRQ_UARTINT1, | ||
44 | #error FIXME | ||
45 | .uartclk = 0, | ||
46 | .regshift = 0, | ||
47 | .iotype = UPIO_PORT, | ||
48 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, | ||
49 | }, | ||
50 | { }, | ||
51 | }; | ||
52 | |||
53 | static struct platform_device serial_device = { | ||
54 | .name = "serial8250", | ||
55 | .id = 0, | ||
56 | .dev = { | ||
57 | .platform_data = serial_platform_data, | ||
58 | }, | ||
59 | }; | ||
60 | |||
61 | extern void epxa10db_map_io(void); | ||
62 | extern void epxa10db_init_irq(void); | ||
63 | extern struct sys_timer epxa10db_timer; | ||
64 | |||
65 | MACHINE_START(CAMELOT, "Altera Epxa10db") | ||
66 | MAINTAINER("Altera Corporation") | ||
67 | BOOT_MEM(0x00000000, 0x7fffc000, 0xffffc000) | ||
68 | MAPIO(epxa10db_map_io) | ||
69 | INITIRQ(epxa10db_init_irq) | ||
70 | .timer = &epxa10db_timer, | ||
71 | MACHINE_END | ||
72 | |||