Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2009 Samsung Electronics |
| 4 | * Minkyu Kang <mk7.kang@samsung.com> |
| 5 | * Heungjun Kim <riverful.kim@samsung.com> |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_ARCH_UART_H_ |
| 9 | #define __ASM_ARCH_UART_H_ |
| 10 | |
| 11 | #ifndef __ASSEMBLY__ |
Minkyu Kang | bfa1424 | 2010-09-28 14:35:02 +0900 | [diff] [blame] | 12 | /* baudrate rest value */ |
| 13 | union br_rest { |
| 14 | unsigned short slot; /* udivslot */ |
| 15 | unsigned char value; /* ufracval */ |
| 16 | }; |
| 17 | |
Minkyu Kang | baa3688 | 2010-03-24 16:59:30 +0900 | [diff] [blame] | 18 | struct s5p_uart { |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 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; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 27 | unsigned char utxh; |
| 28 | unsigned char res1[3]; |
| 29 | unsigned char urxh; |
| 30 | unsigned char res2[3]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 31 | unsigned int ubrdiv; |
Minkyu Kang | bfa1424 | 2010-09-28 14:35:02 +0900 | [diff] [blame] | 32 | union br_rest rest; |
| 33 | unsigned char res3[0x3d0]; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 34 | }; |
Minkyu Kang | bfa1424 | 2010-09-28 14:35:02 +0900 | [diff] [blame] | 35 | |
Minkyu Kang | afae8aa | 2011-01-24 14:43:25 +0900 | [diff] [blame] | 36 | static inline int s5p_uart_divslot(void) |
| 37 | { |
| 38 | return 1; |
| 39 | } |
Minkyu Kang | bfa1424 | 2010-09-28 14:35:02 +0900 | [diff] [blame] | 40 | |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 41 | #endif /* __ASSEMBLY__ */ |
| 42 | |
| 43 | #endif |