Revert last change. Bug noticed by Linus.
[linux-2.6/linux-mips.git] / include / asm-mips64 / serial.h
blob4da0ce94902bfbc478aca877b7bdca7ecff760fc
1 /* $Id: serial.h,v 1.2 2000/01/17 23:32:47 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright (C) 1999 by Ralf Baechle
8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
9 */
10 #ifndef _ASM_SERIAL_H
11 #define _ASM_SERIAL_H
13 #include <linux/config.h>
15 #include <asm/sn/sn0/ip27.h>
18 * This assumes you have a 1.8432 MHz clock for your UART.
20 * It'd be nice if someone built a serial card with a 24.576 MHz
21 * clock, since the 16550A is capable of handling a top speed of 1.5
22 * megabits/second; but this requires the faster clock.
24 #define BASE_BAUD (1843200 / 16)
26 /* Standard COM flags (except for COM4, because of the 8514 problem) */
27 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
30 * The IOC3 serials use a 22MHz clock rate with an additional divider by 3.
32 #define IOC3_BAUD (22000000 / (3*16))
33 #define IOC3_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
35 /* Let the compiler figure out the size. */
36 #define RS_TABLE_SIZE
38 #ifdef CONFIG_SGI_IP27
39 #define _ORIGIN_SERIAL_INIT(int, base) \
40 { baud_base: IOC3_BAUD, irq: int, flags: IOC3_COM_FLAGS, \
41 iomem_base: (u8 *) base, iomem_reg_shift: 0, \
42 io_type: SERIAL_IO_MEM }
43 #define ORIGIN_SERIAL_PORT_DFNS \
44 _ORIGIN_SERIAL_INIT(0, 0x9200000008620178UL), \
45 _ORIGIN_SERIAL_INIT(0, 0x9200000008620170UL),
47 #else
48 #define ORIGIN_SERIAL_PORT_DFNS
49 #endif
51 #define SERIAL_PORT_DFNS \
52 ORIGIN_SERIAL_PORT_DFNS
54 #endif /* _ASM_SERIAL_H */