- pre5:
[davej-history.git] / include / asm-m68k / serial.h
blob15cc547a073b515498870a443a88e390ce856a58
1 /*
2 * include/asm-m68k/serial.h
4 * currently this seems usefull only for a Q40,
5 * its an almost exact copy of ../asm/alpha/serial.h
7 */
9 #include <linux/config.h>
10 #if 0
11 #define rs_init serial_rs_init
12 #define register_serial serial_register_serial
13 #define unregister_serial serial_unregister_serial
14 #endif
17 * This assumes you have a 1.8432 MHz clock for your UART.
19 * It'd be nice if someone built a serial card with a 24.576 MHz
20 * clock, since the 16550A is capable of handling a top speed of 1.5
21 * megabits/second; but this requires the faster clock.
23 #define BASE_BAUD ( 1843200 / 16 )
25 /* Standard COM flags (except for COM4, because of the 8514 problem) */
26 #ifdef CONFIG_SERIAL_DETECT_IRQ
27 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ)
28 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_AUTO_IRQ)
29 #else
30 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
31 #define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF
32 #endif
34 #ifdef CONFIG_SERIAL_MANY_PORTS
35 #define FOURPORT_FLAGS ASYNC_FOURPORT
36 #define ACCENT_FLAGS 0
37 #define BOCA_FLAGS 0
38 #endif
40 #define STD_SERIAL_PORT_DEFNS \
41 /* UART CLK PORT IRQ FLAGS */ \
42 { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
43 { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, /* ttyS1 */ \
44 { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \
45 { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */
48 #ifdef CONFIG_SERIAL_MANY_PORTS
49 #define EXTRA_SERIAL_PORT_DEFNS \
50 { 0, BASE_BAUD, 0x1A0, 9, FOURPORT_FLAGS }, /* ttyS4 */ \
51 { 0, BASE_BAUD, 0x1A8, 9, FOURPORT_FLAGS }, /* ttyS5 */ \
52 { 0, BASE_BAUD, 0x1B0, 9, FOURPORT_FLAGS }, /* ttyS6 */ \
53 { 0, BASE_BAUD, 0x1B8, 9, FOURPORT_FLAGS }, /* ttyS7 */ \
54 { 0, BASE_BAUD, 0x2A0, 5, FOURPORT_FLAGS }, /* ttyS8 */ \
55 { 0, BASE_BAUD, 0x2A8, 5, FOURPORT_FLAGS }, /* ttyS9 */ \
56 { 0, BASE_BAUD, 0x2B0, 5, FOURPORT_FLAGS }, /* ttyS10 */ \
57 { 0, BASE_BAUD, 0x2B8, 5, FOURPORT_FLAGS }, /* ttyS11 */ \
58 { 0, BASE_BAUD, 0x330, 4, ACCENT_FLAGS }, /* ttyS12 */ \
59 { 0, BASE_BAUD, 0x338, 4, ACCENT_FLAGS }, /* ttyS13 */ \
60 { 0, BASE_BAUD, 0x000, 0, 0 }, /* ttyS14 (spare) */ \
61 { 0, BASE_BAUD, 0x000, 0, 0 }, /* ttyS15 (spare) */ \
62 { 0, BASE_BAUD, 0x100, 12, BOCA_FLAGS }, /* ttyS16 */ \
63 { 0, BASE_BAUD, 0x108, 12, BOCA_FLAGS }, /* ttyS17 */ \
64 { 0, BASE_BAUD, 0x110, 12, BOCA_FLAGS }, /* ttyS18 */ \
65 { 0, BASE_BAUD, 0x118, 12, BOCA_FLAGS }, /* ttyS19 */ \
66 { 0, BASE_BAUD, 0x120, 12, BOCA_FLAGS }, /* ttyS20 */ \
67 { 0, BASE_BAUD, 0x128, 12, BOCA_FLAGS }, /* ttyS21 */ \
68 { 0, BASE_BAUD, 0x130, 12, BOCA_FLAGS }, /* ttyS22 */ \
69 { 0, BASE_BAUD, 0x138, 12, BOCA_FLAGS }, /* ttyS23 */ \
70 { 0, BASE_BAUD, 0x140, 12, BOCA_FLAGS }, /* ttyS24 */ \
71 { 0, BASE_BAUD, 0x148, 12, BOCA_FLAGS }, /* ttyS25 */ \
72 { 0, BASE_BAUD, 0x150, 12, BOCA_FLAGS }, /* ttyS26 */ \
73 { 0, BASE_BAUD, 0x158, 12, BOCA_FLAGS }, /* ttyS27 */ \
74 { 0, BASE_BAUD, 0x160, 12, BOCA_FLAGS }, /* ttyS28 */ \
75 { 0, BASE_BAUD, 0x168, 12, BOCA_FLAGS }, /* ttyS29 */ \
76 { 0, BASE_BAUD, 0x170, 12, BOCA_FLAGS }, /* ttyS30 */ \
77 { 0, BASE_BAUD, 0x178, 12, BOCA_FLAGS }, /* ttyS31 */
78 #else
79 #define EXTRA_SERIAL_PORT_DEFNS
80 #endif
82 #define SERIAL_PORT_DFNS \
83 STD_SERIAL_PORT_DEFNS \
84 EXTRA_SERIAL_PORT_DEFNS