2 #ifndef __ASMPPC_GEMINI_SERIAL_H
3 #define __ASMPPC_GEMINI_SERIAL_H
5 #include <platforms/gemini.h>
7 #ifdef CONFIG_SERIAL_MANY_PORTS
8 #define RS_TABLE_SIZE 64
10 #define RS_TABLE_SIZE 4
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)
20 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
21 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
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 },
32 #define PU32_SERIAL_PORT_DEFNS
35 #define SERIAL_PORT_DFNS \
36 STD_SERIAL_PORT_DEFNS \
37 PU32_SERIAL_PORT_DEFNS
40 #endif /* __KERNEL__ */