1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * timbuart.c timberdale FPGA GPIO driver 4 * Copyright (c) 2009 Intel Corporation 5 */ 6 7 /* Supports: 8 * Timberdale FPGA UART 9 */ 10 11 #ifndef _TIMBUART_H 12 #define _TIMBUART_H 13 14 #define TIMBUART_FIFO_SIZE 2048 15 16 #define TIMBUART_RXFIFO 0x08 17 #define TIMBUART_TXFIFO 0x0c 18 #define TIMBUART_IER 0x10 19 #define TIMBUART_IPR 0x14 20 #define TIMBUART_ISR 0x18 21 #define TIMBUART_CTRL 0x1c 22 #define TIMBUART_BAUDRATE 0x20 23 24 #define TIMBUART_CTRL_RTS 0x01 25 #define TIMBUART_CTRL_CTS 0x02 26 #define TIMBUART_CTRL_FLSHTX 0x40 27 #define TIMBUART_CTRL_FLSHRX 0x80 28 29 #define TXBF 0x01 30 #define TXBAE 0x02 31 #define CTS_DELTA 0x04 32 #define RXDP 0x08 33 #define RXBAF 0x10 34 #define RXBF 0x20 35 #define RXTT 0x40 36 #define RXBNAE 0x80 37 #define TXBE 0x100 38 39 #define RXFLAGS (RXDP | RXBAF | RXBF | RXTT | RXBNAE) 40 #define TXFLAGS (TXBF | TXBAE) 41 42 #define TIMBUART_MAJOR 204 43 #define TIMBUART_MINOR 192 44 45 #endif /* _TIMBUART_H */ 46 47