1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2009 Samsung Electronics
4  * Minkyu Kang <mk7.kang@samsung.com>
5  * Heungjun Kim <riverful.kim@samsung.com>
6  */
7 
8 #ifndef __ASM_ARCH_UART_H_
9 #define __ASM_ARCH_UART_H_
10 
11 #ifndef __ASSEMBLY__
12 /* baudrate rest value */
13 union br_rest {
14 	unsigned short	slot;		/* udivslot */
15 	unsigned char	value;		/* ufracval */
16 };
17 
18 struct s5p_uart {
19 	unsigned int	ulcon;
20 	unsigned int	ucon;
21 	unsigned int	ufcon;
22 	unsigned int	umcon;
23 	unsigned int	utrstat;
24 	unsigned int	uerstat;
25 	unsigned int	ufstat;
26 	unsigned int	umstat;
27 	unsigned char	utxh;
28 	unsigned char	res1[3];
29 	unsigned char	urxh;
30 	unsigned char	res2[3];
31 	unsigned int	ubrdiv;
32 	union br_rest	rest;
33 	unsigned char	res3[0xffd0];
34 };
35 
36 static inline int s5p_uart_divslot(void)
37 {
38 	return 0;
39 }
40 
41 #endif	/* __ASSEMBLY__ */
42 
43 #endif
44