1 /* 2 * stmp378x: UARTAPP register definitions 3 * 4 * Copyright (c) 2008 Freescale Semiconductor 5 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. 6 * 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. 11 * 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. 16 * 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 20 */ 21 #define REGS_UARTAPP1_BASE (STMP3XXX_REGS_BASE + 0x6C000) 22 #define REGS_UARTAPP1_PHYS 0x8006C000 23 #define REGS_UARTAPP2_BASE (STMP3XXX_REGS_BASE + 0x6E000) 24 #define REGS_UARTAPP2_PHYS 0x8006E000 25 #define REGS_UARTAPP_SIZE 0x2000 26 27 #define HW_UARTAPP_CTRL0 0x0 28 #define BM_UARTAPP_CTRL0_XFER_COUNT 0x0000FFFF 29 #define BP_UARTAPP_CTRL0_XFER_COUNT 0 30 #define BM_UARTAPP_CTRL0_RXTIMEOUT 0x07FF0000 31 #define BP_UARTAPP_CTRL0_RXTIMEOUT 16 32 #define BM_UARTAPP_CTRL0_RXTO_ENABLE 0x08000000 33 #define BM_UARTAPP_CTRL0_RUN 0x20000000 34 #define BM_UARTAPP_CTRL0_SFTRST 0x80000000 35 #define BM_UARTAPP_CTRL1_XFER_COUNT 0x0000FFFF 36 #define BP_UARTAPP_CTRL1_XFER_COUNT 0 37 #define BM_UARTAPP_CTRL1_RUN 0x10000000 38 39 #define HW_UARTAPP_CTRL2 0x20 40 #define BM_UARTAPP_CTRL2_UARTEN 0x00000001 41 #define BP_UARTAPP_CTRL2_UARTEN 0 42 #define BM_UARTAPP_CTRL2_TXE 0x00000100 43 #define BM_UARTAPP_CTRL2_RXE 0x00000200 44 #define BM_UARTAPP_CTRL2_RTS 0x00000800 45 #define BM_UARTAPP_CTRL2_RTSEN 0x00004000 46 #define BM_UARTAPP_CTRL2_CTSEN 0x00008000 47 #define BM_UARTAPP_CTRL2_RXDMAE 0x01000000 48 #define BM_UARTAPP_CTRL2_TXDMAE 0x02000000 49 #define BM_UARTAPP_CTRL2_DMAONERR 0x04000000 50 51 #define HW_UARTAPP_LINECTRL 0x30 52 #define BM_UARTAPP_LINECTRL_BRK 0x00000001 53 #define BP_UARTAPP_LINECTRL_BRK 0 54 #define BM_UARTAPP_LINECTRL_PEN 0x00000002 55 #define BM_UARTAPP_LINECTRL_EPS 0x00000004 56 #define BM_UARTAPP_LINECTRL_STP2 0x00000008 57 #define BM_UARTAPP_LINECTRL_FEN 0x00000010 58 #define BM_UARTAPP_LINECTRL_WLEN 0x00000060 59 #define BP_UARTAPP_LINECTRL_WLEN 5 60 #define BM_UARTAPP_LINECTRL_SPS 0x00000080 61 #define BM_UARTAPP_LINECTRL_BAUD_DIVFRAC 0x00003F00 62 #define BP_UARTAPP_LINECTRL_BAUD_DIVFRAC 8 63 #define BM_UARTAPP_LINECTRL_BAUD_DIVINT 0xFFFF0000 64 #define BP_UARTAPP_LINECTRL_BAUD_DIVINT 16 65 66 #define HW_UARTAPP_INTR 0x50 67 #define BM_UARTAPP_INTR_CTSMIS 0x00000002 68 #define BM_UARTAPP_INTR_RTIS 0x00000040 69 #define BM_UARTAPP_INTR_CTSMIEN 0x00020000 70 #define BM_UARTAPP_INTR_RXIEN 0x00100000 71 #define BM_UARTAPP_INTR_RTIEN 0x00400000 72 73 #define HW_UARTAPP_DATA 0x60 74 75 #define HW_UARTAPP_STAT 0x70 76 #define BM_UARTAPP_STAT_RXCOUNT 0x0000FFFF 77 #define BP_UARTAPP_STAT_RXCOUNT 0 78 #define BM_UARTAPP_STAT_FERR 0x00010000 79 #define BM_UARTAPP_STAT_PERR 0x00020000 80 #define BM_UARTAPP_STAT_BERR 0x00040000 81 #define BM_UARTAPP_STAT_OERR 0x00080000 82 #define BM_UARTAPP_STAT_RXFE 0x01000000 83 #define BM_UARTAPP_STAT_TXFF 0x02000000 84 #define BM_UARTAPP_STAT_TXFE 0x08000000 85 #define BM_UARTAPP_STAT_CTS 0x10000000 86 87 #define HW_UARTAPP_VERSION 0x90 88