1 /* 2 * xen/include/asm-arm/cadence-uart.h 3 * 4 * Written by Edgar E. Iglesias <edgar.iglesias@xilinx.com> 5 * Copyright (C) 2015 Xilinx Inc. 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 18 #ifndef __ASM_ARM_CADENCE_UART_H__ 19 #define __ASM_ARM_CADENCE_UART_H__ 20 21 #define R_UART_CR 0x00 22 #define UART_CR_RX_RST 0x01 23 #define UART_CR_TX_RST 0x02 24 #define UART_CR_RX_ENABLE 0x04 25 #define UART_CR_RX_DISABLE 0x08 26 #define UART_CR_TX_ENABLE 0x10 27 #define UART_CR_TX_DISABLE 0x20 28 29 #define R_UART_MR 0x04 30 #define UART_MR_NO_PARITY 0x20 31 32 #define R_UART_IER 0x08 33 #define R_UART_IDR 0x0C 34 #define R_UART_IMR 0x10 35 #define R_UART_CISR 0x14 36 #define R_UART_RTRIG 0x20 37 #define R_UART_SR 0x2C 38 #define UART_SR_INTR_RTRIG 0x01 39 #define UART_SR_INTR_REMPTY 0x02 40 #define UART_SR_INTR_TEMPTY 0x08 41 #define UART_SR_INTR_TFUL 0x10 42 43 #define R_UART_TX 0x30 44 #define R_UART_RX 0x30 45 46 #endif /* __ASM_ARM_CADENCE_UART_H */ 47 48 /* 49 * Local variables: 50 * mode: C 51 * c-file-style: "BSD" 52 * c-basic-offset: 4 53 * indent-tabs-mode: nil 54 * End: 55 */ 56