Import 2.3.16
[davej-history.git] / include / asm-ppc / gemini_serial.h
blobb030a5e58ce255b69045bce4b36e0ba0cfbd9655
1 #ifndef __ASMPPC_GEMINI_SERIAL_H
2 #define __ASMPPC_GEMINI_SERIAL_H
4 #include <asm/gemini.h>
6 /* Rate for the 24.576 Mhz clock for the onboard serial chip */
7 #define BASE_BAUD (24576000 / 16)
9 #ifdef CONFIG_SERIAL_DETECT_IRQ
10 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
11 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
12 #else
13 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
14 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
15 #endif
17 #define STD_SERIAL_PORT_DEFNS \
18 { 0, BASE_BAUD, GEMINI_SERIAL_A, 15, STD_COM_FLAGS }, /* ttyS0 */ \
19 { 0, BASE_BAUD, GEMINI_SERIAL_B, 14, STD_COM_FLAGS }, /* ttyS1 */ \
21 #ifdef CONFIG_GEMINI_PU32
22 #define PU32_SERIAL_PORT_DEFNS \
23 { 0, BASE_BAUD, NULL, 0, STD_COM_FLAGS },
24 #else
25 #define PU32_SERIAL_PORT_DEFNS
26 #endif
28 #define SERIAL_PORT_DFNS \
29 STD_SERIAL_PORT_DEFNS \
30 PU32_SERIAL_PORT_DEFNS
32 #endif