File: /usr/src/linux/include/asm-arm/arch-arc/serial.h

1     /*
2      *  linux/include/asm-arm/arch-arc/serial.h
3      *
4      *  Copyright (C) 1996 Russell King.
5      *
6      * This program is free software; you can redistribute it and/or modify
7      * it under the terms of the GNU General Public License version 2 as
8      * published by the Free Software Foundation.
9      *
10      *  Changelog:
11      *   15-10-1996	RMK	Created
12      *   04-04-1998	PJB	Merged `arc' and `a5k' architectures
13      */
14     #ifndef __ASM_ARCH_SERIAL_H
15     #define __ASM_ARCH_SERIAL_H
16     
17     #include <linux/config.h>
18     
19     /*
20      * This assumes you have a 1.8432 MHz clock for your UART.
21      *
22      * It'd be nice if someone built a serial card with a 24.576 MHz
23      * clock, since the 16550A is capable of handling a top speed of 1.5
24      * megabits/second; but this requires the faster clock.
25      */
26     #define BASE_BAUD (1843200 / 16)
27     
28     #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
29     
30     #define RS_TABLE_SIZE	16
31     
32     #if defined(CONFIG_ARCH_A5K)
33          /* UART CLK        PORT  IRQ     FLAGS        */
34     
35     #define STD_SERIAL_PORT_DEFNS						\
36     	{ 0, BASE_BAUD, 0x3F8, 10, STD_COM_FLAGS },	/* ttyS0 */	\
37     	{ 0, BASE_BAUD, 0x2F8, 10, STD_COM_FLAGS },	/* ttyS1 */
38     
39     #else
40     
41     #define STD_SERIAL_PORT_DEFNS						\
42     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS0 */	\
43     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS1 */
44     
45     #endif
46     
47     #define EXTRA_SERIAL_PORT_DEFNS \
48     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS2 */	\
49     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS3 */	\
50     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS }, 	/* ttyS4 */	\
51     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS5 */	\
52     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS6 */	\
53     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS7 */	\
54     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS8 */	\
55     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS9 */	\
56     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS10 */	\
57     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS11 */	\
58     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS12 */	\
59     	{ 0, BASE_BAUD, 0    ,  0, STD_COM_FLAGS },	/* ttyS13 */
60     
61     #endif
62