blob: 6618981ca83bc9f3abf9d24ee083e3792162771f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Minkyu Kang87649982009-10-01 17:20:01 +09002/*
3 * (C) Copyright 2009 Samsung Electronics
4 * Minkyu Kang <mk7.kang@samsung.com>
5 * Heungjun Kim <riverful.kim@samsung.com>
Minkyu Kang87649982009-10-01 17:20:01 +09006 */
7
8#ifndef __ASM_ARCH_UART_H_
9#define __ASM_ARCH_UART_H_
10
11#ifndef __ASSEMBLY__
Minkyu Kangbfa14242010-09-28 14:35:02 +090012/* baudrate rest value */
13union br_rest {
14 unsigned short slot; /* udivslot */
15 unsigned char value; /* ufracval */
16};
17
Minkyu Kangbaa36882010-03-24 16:59:30 +090018struct s5p_uart {
Minkyu Kangc6cb1842009-10-15 11:19:15 +090019 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;
Minkyu Kang87649982009-10-01 17:20:01 +090027 unsigned char utxh;
28 unsigned char res1[3];
29 unsigned char urxh;
30 unsigned char res2[3];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090031 unsigned int ubrdiv;
Minkyu Kangbfa14242010-09-28 14:35:02 +090032 union br_rest rest;
33 unsigned char res3[0x3d0];
Minkyu Kang87649982009-10-01 17:20:01 +090034};
Minkyu Kangbfa14242010-09-28 14:35:02 +090035
Minkyu Kangafae8aa2011-01-24 14:43:25 +090036static inline int s5p_uart_divslot(void)
37{
38 return 1;
39}
Minkyu Kangbfa14242010-09-28 14:35:02 +090040
Minkyu Kang87649982009-10-01 17:20:01 +090041#endif /* __ASSEMBLY__ */
42
43#endif