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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-or32/] [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
#ifdef __KERNEL__
2
#ifndef _OR32_SERIAL_H__
3
#define _OR32_SERIAL_H__
4
 
5
#include <asm/board.h>
6
#include <linux/config.h>
7
 
8 1297 phoenix
/* 16 is hardware devisior */
9
#define BASE_BAUD ( (SYS_CLK/(OR32_CONSOLE_BAUD)) * (9600/16) )
10 1276 phoenix
 
11
#define RS_TABLE_SIZE  4
12
 
13
/* Standard COM flags (except for COM4, because of the 8514 problem) */
14
#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
15
#define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
16
 
17
/* if you do not want it to run in irq mode, just set IRQ to 0 */
18
 
19
#define STD_SERIAL_PORT_DEFNS                   \
20
        /*   UART CLK   PORT       IRQ FLAGS        */                  \
21
        { 0, BASE_BAUD, 0x90000000, 2, STD_COM4_FLAGS },/* ttyS0 */      \
22
 
23
#ifdef CONFIG_SERIAL_MANY_PORTS
24
#define EXTRA_SERIAL_PORT_DEFNS
25
/*
26
 * add extra serial ports here
27
 */
28
#else
29
#define EXTRA_SERIAL_PORT_DEFNS
30
#endif
31
 
32
#define HUB6_SERIAL_PORT_DFNS
33
 
34
#define MCA_SERIAL_PORT_DFNS
35
 
36
#define SERIAL_PORT_DFNS                \
37
        STD_SERIAL_PORT_DEFNS           \
38
        EXTRA_SERIAL_PORT_DEFNS         \
39
        HUB6_SERIAL_PORT_DFNS           \
40
        MCA_SERIAL_PORT_DFNS
41
 
42
#endif /* __ASM_SERIAL_H__ */
43
#endif /* __KERNEL__ */

powered by: WebSVN 2.1.0

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