ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[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_IQ80310
19
20 #define IRQ_UART1       IRQ_IQ80310_UART1
21 #define IRQ_UART2       IRQ_IQ80310_UART2
22
23 #define STD_SERIAL_PORT_DEFNS                   \
24        /* UART CLK      PORT        IRQ        FLAGS        */                  \
25         { 0, BASE_BAUD, IQ80310_UART2, IRQ_UART2, STD_COM_FLAGS },  /* ttyS0 */ \
26         { 0, BASE_BAUD, IQ80310_UART1, IRQ_UART1, STD_COM_FLAGS }  /* ttyS1 */
27
28 #endif // CONFIG_ARCH_IQ80310
29
30 #ifdef CONFIG_ARCH_IQ80321
31
32 #define IRQ_UART1       IRQ_IQ80321_UART
33
34 #define STD_SERIAL_PORT_DEFNS                   \
35        /* UART CLK      PORT        IRQ        FLAGS        */                  \
36         { 0, BASE_BAUD, 0xfe800000, IRQ_UART1, STD_COM_FLAGS },  /* ttyS0 */
37 #endif // CONFIG_ARCH_IQ80321
38
39
40 #define EXTRA_SERIAL_PORT_DEFNS
41