This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-arm / arch-h720x / serial.h
1 /*
2  * linux/include/asm-arm/arch-h72x/serial.h
3  *
4  * Copyright (C) 2003 Thomas Gleixner <tglx@linutronix.de>
5  *               2003 Robert Schwebel <r.schwebel@pengutronix.de>
6  *
7  * Serial port setup for Hynix boards
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12  *
13  */
14
15 #ifndef __ASM_ARCH_SERIAL_H
16 #define __ASM_ARCH_SERIAL_H
17
18 #include <asm/arch/irqs.h>
19
20 /*
21  * Standard COM flags
22  */
23 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
24 #define RS_TABLE_SIZE
25
26 /* Base clock is 3.6864 MHz */
27 #define BASE_BAUD       (115200*2)
28 #define EXTRA_SERIAL_PORT_DEFNS
29
30 /*
31  * Board dependend defines
32  */
33 #if defined (CONFIG_CPU_H7201)
34 #define BASE_BAUD_P3C   (115200)
35
36 #define STD_SERIAL_PORT_DEFNS \
37         { \
38         .baud_base      = BASE_BAUD, \
39         .port           = SERIAL0_BASE, \
40         .iomem_base     = (u8*)SERIAL0_BASE, \
41         .io_type        = UPIO_MEM, \
42         .irq            = IRQ_UART0, \
43         .flags          = STD_COM_FLAGS, \
44         .iomem_reg_shift = 2,\
45         }, \
46         { \
47         .baud_base      = BASE_BAUD, \
48         .port           = SERIAL1_BASE, \
49         .iomem_base     = (u8*)SERIAL1_BASE, \
50         .io_type        = UPIO_MEM, \
51         .irq            = IRQ_UART1, \
52         .flags          = STD_COM_FLAGS, \
53         .iomem_reg_shift = 2,\
54         }
55
56 #elif defined (CONFIG_CPU_H7202)
57
58 #define STD_SERIAL_PORT_DEFNS \
59         { \
60         .baud_base      = BASE_BAUD, \
61         .port           = SERIAL0_BASE, \
62         .iomem_base     = (u8*)SERIAL0_BASE, \
63         .io_type        = UPIO_MEM, \
64         .irq            = IRQ_UART0, \
65         .flags          = STD_COM_FLAGS, \
66         .iomem_reg_shift = 2,\
67         }, \
68         { \
69         .baud_base      = BASE_BAUD, \
70         .port           = SERIAL1_BASE, \
71         .iomem_base     = (u8*)SERIAL1_BASE, \
72         .io_type        = UPIO_MEM, \
73         .irq            = IRQ_UART1, \
74         .flags          = STD_COM_FLAGS, \
75         .iomem_reg_shift = 2,\
76         }, \
77         { \
78         .baud_base      = BASE_BAUD, \
79         .port           = SERIAL2_BASE, \
80         .iomem_base     = (u8*)SERIAL2_BASE, \
81         .io_type        = UPIO_MEM, \
82         .irq            = IRQ_UART2, \
83         .flags          = STD_COM_FLAGS, \
84         .iomem_reg_shift = 2,\
85         }, \
86         { \
87         .baud_base      = BASE_BAUD, \
88         .port           = SERIAL3_BASE, \
89         .iomem_base     = (u8*)SERIAL3_BASE, \
90         .io_type        = UPIO_MEM, \
91         .irq            = IRQ_UART3, \
92         .flags          = STD_COM_FLAGS, \
93         .iomem_reg_shift = 2,\
94         }
95
96 #else
97 #error machine definition mismatch
98 #endif
99
100 /* __ASM_ARCH_SERIAL_H */
101 #endif