]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/serial/stmp3xxx_dbguart.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / drivers / serial / stmp3xxx_dbguart.h
1 /*
2  * Debug UART register definitions
3  * (C) Copyright 2009 Freescale Semiconductor, Inc.
4  */
5
6 #ifndef STMP3XXX_DBGUART_H
7 #define STMP3XXX_DBGUART_H
8
9 #include <asm/arch/dbguart.h>
10
11 #define UARTDBGDR       0x00
12 #define UARTDBGRSR_ECR  0x04
13 #define UARTDBGFR       0x18
14 #define UARTDBGILPR     0x20
15 #define UARTDBGIBRD     0x24
16 #define UARTDBGFBRD     0x28
17 #define UARTDBGLCR_H    0x2c
18 #define UARTDBGCR       0x30
19 #define UARTDBGIFLS     0x34
20 #define UARTDBGIMSC     0x38
21 #define UARTDBGRIS      0x3c
22 #define UARTDBGMIS      0x40
23 #define UARTDBGICR      0x44
24 #define UARTDBGDMACR    0x48
25
26 /* UARTDBGFR - Flag Register bits */
27 #define CTS     0x0001
28 #define DSR     0x0002
29 #define DCD     0x0004
30 #define BUSY    0x0008
31 #define RXFE    0x0010
32 #define TXFF    0x0020
33 #define RXFF    0x0040
34 #define TXFE    0x0080
35 #define RI      0x0100
36
37 /* UARTDBGLCR_H - Line Control Register bits */
38 #define BRK     0x0001
39 #define PEN     0x0002
40 #define EPS     0x0004
41 #define STP2    0x0008
42 #define FEN     0x0010
43 #define WLEN5   0x0000
44 #define WLEN6   0x0020
45 #define WLEN7   0x0040
46 #define WLEN8   0x0060
47 #define SPS     0x0080
48
49 /* UARTDBGCR - Control Register bits */
50 #define UARTEN  0x0001
51 #define LBE     0x0080
52 #define TXE     0x0100
53 #define RXE     0x0200
54 #define DTR     0x0400
55 #define RTS     0x0800
56 #define OUT1    0x1000
57 #define OUT2    0x2000
58 #define RTSEN   0x4000
59 #define CTSEN   0x8000
60
61 #endif /* STMP3XXX_DBGUART_H */