OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-m68k/] [serial.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.