ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-sa1100 / serial.h
1 /*
2  * include/asm-arm/arch-sa1100/serial.h
3  * (C) 1999 Nicolas Pitre <nico@cam.org>
4  *
5  * All this is intended to be used with a 16550-like UART on the SA1100's 
6  * PCMCIA bus.  It has nothing to do with the SA1100's internal serial ports.
7  * This is included by serial.c -- serial_sa1100.c makes no use of it.
8  */
9
10 #include <linux/config.h>
11
12 /* Standard COM flags */
13 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
14
15 /*
16  * Rather empty table...
17  * Hardwired serial ports should be defined here.
18  * PCMCIA will fill it dynamically.
19  */
20 #ifdef CONFIG_SA1100_TRIZEPS
21
22 #define STD_SERIAL_PORT_DEFNS   \
23        /* UART  CLK             PORT            IRQ             FLAGS           */ \
24         { 0,    1500000,        TRIZEPS_UART5,  IRQ_GPIO16,     STD_COM_FLAGS },   \
25         { 0,    1500000,        TRIZEPS_UART6,  IRQ_GPIO17,     STD_COM_FLAGS }
26
27 #else
28
29 /*
30  * This assumes you have a 1.8432 MHz clock for your UART.
31  *
32  * It'd be nice if someone built a serial card with a 24.576 MHz
33  * clock, since the 16550A is capable of handling a top speed of 1.5
34  * megabits/second; but this requires the faster clock.
35  */
36 #define BASE_BAUD ( 1843200 / 16 )
37
38 #define STD_SERIAL_PORT_DEFNS   \
39        /* UART  CLK             PORT            IRQ     FLAGS           */ \
40         { 0,    BASE_BAUD,      0,              0,      STD_COM_FLAGS },   \
41         { 0,    BASE_BAUD,      0,              0,      STD_COM_FLAGS },   \
42         { 0,    BASE_BAUD,      0,              0,      STD_COM_FLAGS },   \
43         { 0,    BASE_BAUD,      0,              0,      STD_COM_FLAGS }
44
45 #endif
46
47 #define EXTRA_SERIAL_PORT_DEFNS