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