2 * linux/include/asm-arm/arch-anakin/serial_reg.h
4 * Copyright (C) 2001 Aleph One Ltd. for Acunia N.V.
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.
11 * 09-Apr-2001 TTC Created
14 #ifndef ASM_ARCH_SERIAL_REG_H
15 #define ASM_ARCH_SERIAL_REG_H
18 * Serial registers (other than tx/rx)
24 #define RXRELEASE (1 << 0)
25 #define TXEMPTY (1 << 1)
27 #define PRESCALER (31 << 3)
28 #define SETBAUD(baud) ((230400 / (baud) - 1) << 3)
29 #define GETBAUD(prescaler) (230400 / (((prescaler) >> 3) + 1))
35 #define IRQENABLE (1 << 0)
36 #define SENDREQUEST (1 << 1)
40 #define BLOCKRX (1 << 5)
41 #define PARITY (3 << 6)
42 #define SETPARITY(parity) ((parity) << 6)
43 #define GETPARITY(parity) ((parity) >> 6)
44 #define NONEPARITY (0)
46 #define EVENPARITY (2)
53 #define OVERRUN (1 << 2)
58 #define SETBREAK (1 << 0)
61 * Software interrupt register
63 #define TXENABLE (1 << 0)