2
* stmp37xx: UARTAPP register definitions
4
* Copyright (c) 2008 Freescale Semiconductor
5
* Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
#define REGS_UARTAPP_BASE (STMP3XXX_REGS_BASE + 0x6C000)
22
#define REGS_UARTAPP1_PHYS 0x8006C000
23
#define REGS_UARTAPP_SIZE 0x2000
25
#define HW_UARTAPP_CTRL0 0x0
26
#define BM_UARTAPP_CTRL0_XFER_COUNT 0x0000FFFF
27
#define BP_UARTAPP_CTRL0_XFER_COUNT 0
28
#define BM_UARTAPP_CTRL0_RXTIMEOUT 0x07FF0000
29
#define BP_UARTAPP_CTRL0_RXTIMEOUT 16
30
#define BM_UARTAPP_CTRL0_RXTO_ENABLE 0x08000000
31
#define BM_UARTAPP_CTRL0_RUN 0x20000000
32
#define BM_UARTAPP_CTRL0_SFTRST 0x80000000
33
#define BM_UARTAPP_CTRL1_XFER_COUNT 0x0000FFFF
34
#define BP_UARTAPP_CTRL1_XFER_COUNT 0
35
#define BM_UARTAPP_CTRL1_RUN 0x10000000
37
#define HW_UARTAPP_CTRL2 0x20
38
#define BM_UARTAPP_CTRL2_UARTEN 0x00000001
39
#define BP_UARTAPP_CTRL2_UARTEN 0
40
#define BM_UARTAPP_CTRL2_TXE 0x00000100
41
#define BM_UARTAPP_CTRL2_RXE 0x00000200
42
#define BM_UARTAPP_CTRL2_RTS 0x00000800
43
#define BM_UARTAPP_CTRL2_RTSEN 0x00004000
44
#define BM_UARTAPP_CTRL2_CTSEN 0x00008000
45
#define BM_UARTAPP_CTRL2_RXDMAE 0x01000000
46
#define BM_UARTAPP_CTRL2_TXDMAE 0x02000000
47
#define BM_UARTAPP_CTRL2_DMAONERR 0x04000000
49
#define HW_UARTAPP_LINECTRL 0x30
50
#define BM_UARTAPP_LINECTRL_BRK 0x00000001
51
#define BP_UARTAPP_LINECTRL_BRK 0
52
#define BM_UARTAPP_LINECTRL_PEN 0x00000002
53
#define BM_UARTAPP_LINECTRL_EPS 0x00000004
54
#define BM_UARTAPP_LINECTRL_STP2 0x00000008
55
#define BM_UARTAPP_LINECTRL_FEN 0x00000010
56
#define BM_UARTAPP_LINECTRL_WLEN 0x00000060
57
#define BP_UARTAPP_LINECTRL_WLEN 5
58
#define BM_UARTAPP_LINECTRL_SPS 0x00000080
59
#define BM_UARTAPP_LINECTRL_BAUD_DIVFRAC 0x00003F00
60
#define BP_UARTAPP_LINECTRL_BAUD_DIVFRAC 8
61
#define BM_UARTAPP_LINECTRL_BAUD_DIVINT 0xFFFF0000
62
#define BP_UARTAPP_LINECTRL_BAUD_DIVINT 16
64
#define HW_UARTAPP_INTR 0x50
65
#define BM_UARTAPP_INTR_CTSMIS 0x00000002
66
#define BM_UARTAPP_INTR_RTIS 0x00000040
67
#define BM_UARTAPP_INTR_CTSMIEN 0x00020000
68
#define BM_UARTAPP_INTR_RXIEN 0x00100000
69
#define BM_UARTAPP_INTR_RTIEN 0x00400000
71
#define HW_UARTAPP_DATA 0x60
73
#define HW_UARTAPP_STAT 0x70
74
#define BM_UARTAPP_STAT_RXCOUNT 0x0000FFFF
75
#define BP_UARTAPP_STAT_RXCOUNT 0
76
#define BM_UARTAPP_STAT_FERR 0x00010000
77
#define BM_UARTAPP_STAT_PERR 0x00020000
78
#define BM_UARTAPP_STAT_BERR 0x00040000
79
#define BM_UARTAPP_STAT_OERR 0x00080000
80
#define BM_UARTAPP_STAT_RXFE 0x01000000
81
#define BM_UARTAPP_STAT_TXFF 0x02000000
82
#define BM_UARTAPP_STAT_TXFE 0x08000000
83
#define BM_UARTAPP_STAT_CTS 0x10000000
85
#define HW_UARTAPP_VERSION 0x90