blob: d2a17a221e30e84779214fb5810137a17c8d8e77 [file] [log] [blame]
Mark Kettenis835cb5d2021-10-23 16:58:04 +02001/* 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 */
13union br_rest {
14 unsigned short slot; /* udivslot */
15 unsigned char value; /* ufracval */
16};
17
18struct 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 int utxh;
28 unsigned int urxh;
29 unsigned int ubrdiv;
30 union br_rest rest;
31 unsigned char res3[0x3fd0];
32};
33
34static inline int s5p_uart_divslot(void)
35{
36 return 0;
37}
38
39#endif /* __ASSEMBLY__ */
40
41#endif