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