Import 2.3.18pre1
[davej-history.git] / include / asm-ppc / gemini_serial.h
blob745c24a3978d44c1d81c6f942b3eec8765f77691
1 #ifndef __ASMPPC_GEMINI_SERIAL_H
2 #define __ASMPPC_GEMINI_SERIAL_H
4 #include <linux/config.h>
5 #include <asm/gemini.h>
7 #ifdef CONFIG_SERIAL_MANY_PORTS
8 #define RS_TABLE_SIZE 64
9 #else
10 #define RS_TABLE_SIZE 4
11 #endif
13 /* Rate for the 24.576 Mhz clock for the onboard serial chip */
14 #define BASE_BAUD (24576000 / 16)
16 #ifdef CONFIG_SERIAL_DETECT_IRQ
17 #define STD_COM_FLAGS (/*ASYNC_BOOT_AUTOCONF|*/ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
18 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
19 #else
20 #define STD_COM_FLAGS (/*ASYNC_BOOT_AUTOCONF|*/ASYNC_SKIP_TEST)
21 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
22 #endif
24 #define STD_SERIAL_PORT_DEFNS \
25 { 0, BASE_BAUD, GEMINI_SERIAL_A, 15, STD_COM_FLAGS }, /* ttyS0 */ \
26 { 0, BASE_BAUD, GEMINI_SERIAL_B, 14, STD_COM_FLAGS }, /* ttyS1 */ \
28 #ifdef CONFIG_GEMINI_PU32
29 #define PU32_SERIAL_PORT_DEFNS \
30 { 0, BASE_BAUD, NULL, 0, STD_COM_FLAGS },
31 #else
32 #define PU32_SERIAL_PORT_DEFNS
33 #endif
35 #define SERIAL_PORT_DFNS \
36 STD_SERIAL_PORT_DEFNS \
37 PU32_SERIAL_PORT_DEFNS
39 #endif