RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / asm-arm26 / serial.h
blobdd86a716cb0b3c98478b2567d5ad6216d0ad0b59
1 /*
2 * linux/include/asm-arm/serial.h
4 * Copyright (C) 1996 Russell King.
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.
10 * Changelog:
11 * 15-10-1996 RMK Created
14 #ifndef __ASM_SERIAL_H
15 #define __ASM_SERIAL_H
19 * This assumes you have a 1.8432 MHz clock for your UART.
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.
25 #define BASE_BAUD (1843200 / 16)
27 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
29 #if defined(CONFIG_ARCH_A5K)
30 /* UART CLK PORT IRQ FLAGS */
32 #define SERIAL_PORT_DFNS \
33 { 0, BASE_BAUD, 0x3F8, 10, STD_COM_FLAGS }, /* ttyS0 */ \
34 { 0, BASE_BAUD, 0x2F8, 10, STD_COM_FLAGS }, /* ttyS1 */
36 #else
38 #define SERIAL_PORT_DFNS \
39 { 0, BASE_BAUD, 0 , 0, STD_COM_FLAGS }, /* ttyS0 */ \
40 { 0, BASE_BAUD, 0 , 0, STD_COM_FLAGS }, /* ttyS1 */
42 #endif
44 #endif