blob: d357188b22445d484cfa205250c8b67f2e6d2881 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Minkyu Kangb1b24682011-01-24 15:22:23 +09002/*
3 * (C) Copyright 2009 Samsung Electronics
4 * Minkyu Kang <mk7.kang@samsung.com>
5 * Heungjun Kim <riverful.kim@samsung.com>
Minkyu Kangb1b24682011-01-24 15:22:23 +09006 */
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 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
36static inline int s5p_uart_divslot(void)
37{
38 return 0;
39}
40
41#endif /* __ASSEMBLY__ */
42
43#endif