]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/tty/serial/timbuart.h
1 // SPDX-License-Identifier: GPL-2.0
3 * timbuart.c timberdale FPGA GPIO driver
4 * Copyright (c) 2009 Intel Corporation
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Timberdale FPGA UART
27 #define TIMBUART_FIFO_SIZE 2048
29 #define TIMBUART_RXFIFO 0x08
30 #define TIMBUART_TXFIFO 0x0c
31 #define TIMBUART_IER 0x10
32 #define TIMBUART_IPR 0x14
33 #define TIMBUART_ISR 0x18
34 #define TIMBUART_CTRL 0x1c
35 #define TIMBUART_BAUDRATE 0x20
37 #define TIMBUART_CTRL_RTS 0x01
38 #define TIMBUART_CTRL_CTS 0x02
39 #define TIMBUART_CTRL_FLSHTX 0x40
40 #define TIMBUART_CTRL_FLSHRX 0x80
44 #define CTS_DELTA 0x04
52 #define RXFLAGS (RXDP | RXBAF | RXBF | RXTT | RXBNAE)
53 #define TXFLAGS (TXBF | TXBAE)
55 #define TIMBUART_MAJOR 204
56 #define TIMBUART_MINOR 192
58 #endif /* _TIMBUART_H */