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