xref: /openbmc/u-boot/arch/arm/include/asm/arch-rockchip/uart.h (revision 07d8d35a612b30e37256179fc6fd40158bcb528e)
1*07d8d35aShuang lin /*
2*07d8d35aShuang lin  * (C) Copyright 2015 Rockchip Electronics Co., Ltd
3*07d8d35aShuang lin  *
4*07d8d35aShuang lin  * SPDX-License-Identifier:     GPL-2.0+
5*07d8d35aShuang lin  */
6*07d8d35aShuang lin 
7*07d8d35aShuang lin #ifndef __ASM_ARCH_UART_H
8*07d8d35aShuang lin #define __ASM_ARCH_UART_H
9*07d8d35aShuang lin struct rk_uart {
10*07d8d35aShuang lin 	unsigned int rbr; /* Receive buffer register. */
11*07d8d35aShuang lin 	unsigned int ier; /* Interrupt enable register. */
12*07d8d35aShuang lin 	unsigned int fcr; /* FIFO control register. */
13*07d8d35aShuang lin 	unsigned int lcr; /* Line control register. */
14*07d8d35aShuang lin 	unsigned int mcr; /* Modem control register. */
15*07d8d35aShuang lin 	unsigned int lsr; /* Line status register. */
16*07d8d35aShuang lin 	unsigned int msr; /* Modem status register. */
17*07d8d35aShuang lin 	unsigned int scr;
18*07d8d35aShuang lin 	unsigned int reserved1[(0x30 - 0x20) / 4];
19*07d8d35aShuang lin 	unsigned int srbr[(0x70 - 0x30) / 4];
20*07d8d35aShuang lin 	unsigned int far;
21*07d8d35aShuang lin 	unsigned int tfr;
22*07d8d35aShuang lin 	unsigned int rfw;
23*07d8d35aShuang lin 	unsigned int usr;
24*07d8d35aShuang lin 	unsigned int tfl;
25*07d8d35aShuang lin 	unsigned int rfl;
26*07d8d35aShuang lin 	unsigned int srr;
27*07d8d35aShuang lin 	unsigned int srts;
28*07d8d35aShuang lin 	unsigned int sbcr;
29*07d8d35aShuang lin 	unsigned int sdmam;
30*07d8d35aShuang lin 	unsigned int sfe;
31*07d8d35aShuang lin 	unsigned int srt;
32*07d8d35aShuang lin 	unsigned int stet;
33*07d8d35aShuang lin 	unsigned int htx;
34*07d8d35aShuang lin 	unsigned int dmasa;
35*07d8d35aShuang lin 	unsigned int reserver2[(0xf4 - 0xac) / 4];
36*07d8d35aShuang lin 	unsigned int cpr;
37*07d8d35aShuang lin 	unsigned int ucv;
38*07d8d35aShuang lin 	unsigned int ctr;
39*07d8d35aShuang lin };
40*07d8d35aShuang lin 
41*07d8d35aShuang lin void rk_uart_init(void *base);
42*07d8d35aShuang lin void print_hex(unsigned int n);
43*07d8d35aShuang lin void print(char *s);
44*07d8d35aShuang lin #endif
45