1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 277b55e8cSThomas Abraham /* 377b55e8cSThomas Abraham * (C) Copyright 2009 Samsung Electronics 477b55e8cSThomas Abraham * Minkyu Kang <mk7.kang@samsung.com> 577b55e8cSThomas Abraham * Heungjun Kim <riverful.kim@samsung.com> 677b55e8cSThomas Abraham */ 777b55e8cSThomas Abraham 877b55e8cSThomas Abraham #ifndef __ASM_ARCH_UART_H_ 977b55e8cSThomas Abraham #define __ASM_ARCH_UART_H_ 1077b55e8cSThomas Abraham 1177b55e8cSThomas Abraham #ifndef __ASSEMBLY__ 1277b55e8cSThomas Abraham /* baudrate rest value */ 1377b55e8cSThomas Abraham union br_rest { 1477b55e8cSThomas Abraham unsigned short slot; /* udivslot */ 1577b55e8cSThomas Abraham unsigned char value; /* ufracval */ 1677b55e8cSThomas Abraham }; 1777b55e8cSThomas Abraham 1877b55e8cSThomas Abraham struct s5p_uart { 1977b55e8cSThomas Abraham unsigned int ulcon; 2077b55e8cSThomas Abraham unsigned int ucon; 2177b55e8cSThomas Abraham unsigned int ufcon; 2277b55e8cSThomas Abraham unsigned int umcon; 2377b55e8cSThomas Abraham unsigned int utrstat; 2477b55e8cSThomas Abraham unsigned int uerstat; 2577b55e8cSThomas Abraham unsigned int ufstat; 2677b55e8cSThomas Abraham unsigned int umstat; 2777b55e8cSThomas Abraham unsigned char utxh; 2877b55e8cSThomas Abraham unsigned char res1[3]; 2977b55e8cSThomas Abraham unsigned char urxh; 3077b55e8cSThomas Abraham unsigned char res2[3]; 3177b55e8cSThomas Abraham unsigned int ubrdiv; 3277b55e8cSThomas Abraham union br_rest rest; 3377b55e8cSThomas Abraham unsigned char res3[0xffd0]; 3477b55e8cSThomas Abraham }; 3577b55e8cSThomas Abraham s5p_uart_divslot(void)3677b55e8cSThomas Abrahamstatic inline int s5p_uart_divslot(void) 3777b55e8cSThomas Abraham { 3877b55e8cSThomas Abraham return 0; 3977b55e8cSThomas Abraham } 4077b55e8cSThomas Abraham 4177b55e8cSThomas Abraham #endif /* __ASSEMBLY__ */ 4277b55e8cSThomas Abraham 4377b55e8cSThomas Abraham #endif 44