[CRYPTO] api: Remove deprecated interface
[pv_ops_mirror.git] / arch / ppc / platforms / gemini_serial.h
blobb915eff79fdbe4d8b5e64d5d664bd1d3fb907814
1 #ifdef __KERNEL__
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
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
40 #endif /* __KERNEL__ */