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

Subversion Repositories or1k

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

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

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * include/asm-sh/serial.h
3
 *
4
 * Configuration details for 8250, 16450, 16550, etc. serial ports
5
 */
6
 
7
#ifndef _ASM_SERIAL_H
8
#define _ASM_SERIAL_H
9
 
10
#include <linux/config.h>
11
#include <linux/kernel.h>
12
 
13
#ifdef CONFIG_SH_EC3104
14
#include <asm/serial-ec3104.h>
15
#elif defined (CONFIG_SH_BIGSUR)
16
#include <asm/serial-bigsur.h>
17
#else
18
/*
19
 * This assumes you have a 1.8432 MHz clock for your UART.
20
 *
21
 * It'd be nice if someone built a serial card with a 24.576 MHz
22
 * clock, since the 16550A is capable of handling a top speed of 1.5
23
 * megabits/second; but this requires the faster clock.
24
 */
25
#define BASE_BAUD ( 1843200 / 16 )
26
 
27
#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
28
 
29
#ifdef CONFIG_HD64465
30
#include <asm/hd64465.h>
31
 
32
#define RS_TABLE_SIZE  1
33
 
34
#define STD_SERIAL_PORT_DEFNS                   \
35
        /* UART CLK   PORT IRQ     FLAGS        */                      \
36
        { 0, BASE_BAUD, 0x3F8, HD64465_IRQ_UART, STD_COM_FLAGS }  /* ttyS0 */
37
 
38
#else
39
 
40
#define RS_TABLE_SIZE  2
41
 
42
#define STD_SERIAL_PORT_DEFNS                   \
43
        /* UART CLK   PORT IRQ     FLAGS        */                      \
44
        { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },       /* ttyS0 */     \
45
        { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }        /* ttyS1 */
46
 
47
#endif
48
 
49
#define SERIAL_PORT_DFNS STD_SERIAL_PORT_DEFNS
50
 
51
/* XXX: This should be moved ino irq.h */
52
#define irq_cannonicalize(x) (x)
53
 
54
#endif
55
#endif /* _ASM_SERIAL_H */

powered by: WebSVN 2.1.0

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