vserver 1.9.3
[linux-2.6.git] / include / asm-arm / arch-iop3xx / serial.h
1 /*
2  * include/asm-arm/arch-iop3xx/serial.h
3  */
4 #include <linux/config.h>
5
6 /*
7  * This assumes you have a 1.8432 MHz clock for your UART.
8  *
9  * It'd be nice if someone built a serial card with a 24.576 MHz
10  * clock, since the 16550A is capable of handling a top speed of 1.5
11  * megabits/second; but this requires the faster clock.
12  */
13 #define BASE_BAUD ( 1843200 / 16 )
14
15 /* Standard COM flags */
16 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
17
18 #ifdef CONFIG_ARCH_IQ80321
19
20 #define IRQ_UART1       IRQ_IQ80321_UART
21
22 #define RS_TABLE_SIZE 1
23
24 #define STD_SERIAL_PORT_DEFNS                   \
25        /* UART CLK      PORT        IRQ        FLAGS        */                  \
26         { 0, BASE_BAUD, 0xfe800000, IRQ_UART1, STD_COM_FLAGS },  /* ttyS0 */
27 #endif // CONFIG_ARCH_IQ80321
28
29 #ifdef CONFIG_ARCH_IQ31244
30
31 #define IRQ_UART1       IRQ_IQ31244_UART
32
33 #define RS_TABLE_SIZE 1
34
35 #define STD_SERIAL_PORT_DEFNS                   \
36        /* UART CLK      PORT        IRQ        FLAGS        */                  \
37         { 0, BASE_BAUD, 0xfe800000, IRQ_UART1, STD_COM_FLAGS },  /* ttyS0 */
38 #endif // CONFIG_ARCH_IQ31244
39
40 #ifdef CONFIG_ARCH_IQ80331
41
42 #undef BASE_BAUD
43
44 #define BASE_BAUD ( 33334000 / 16 )
45
46 #define IRQ_UART0       IRQ_IQ80331_UART0
47 #define IRQ_UART1       IRQ_IQ80331_UART1
48
49 #define RS_TABLE_SIZE 2
50
51 #define STD_SERIAL_PORT_DEFNS                           \
52         {                                               \
53           /*type: PORT_XSCALE,*/                        \
54           /*xmit_fifo_size: 32,*/                       \
55           baud_base: BASE_BAUD,                         \
56           irq: IRQ_UART0,                               \
57           flags: STD_COM_FLAGS,                         \
58           iomem_base: IQ80331_UART0_VIRT,               \
59           io_type: SERIAL_IO_MEM,                       \
60           iomem_reg_shift: 2                            \
61         }, /* ttyS0 */                                  \
62         {                                               \
63           /*type: PORT_XSCALE,*/                        \
64           /*xmit_fifo_size: 32,*/                       \
65           baud_base: BASE_BAUD,                         \
66           irq: IRQ_UART1,                               \
67           flags: STD_COM_FLAGS,                         \
68           iomem_base: IQ80331_UART1_VIRT,               \
69           io_type: SERIAL_IO_MEM,                       \
70           iomem_reg_shift: 2                            \
71         } /* ttyS1 */
72 #endif // CONFIG_ARCH_IQ80331
73
74
75 #define EXTRA_SERIAL_PORT_DEFNS
76