2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2009-10-01 08:20:01 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2009 Samsung Electronics
|
|
|
|
* Minkyu Kang <mk7.kang@samsung.com>
|
|
|
|
* Heungjun Kim <riverful.kim@samsung.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_UART_H_
|
|
|
|
#define __ASM_ARCH_UART_H_
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
2010-09-28 05:35:02 +00:00
|
|
|
/* baudrate rest value */
|
|
|
|
union br_rest {
|
|
|
|
unsigned short slot; /* udivslot */
|
|
|
|
unsigned char value; /* ufracval */
|
|
|
|
};
|
|
|
|
|
2010-03-24 07:59:30 +00:00
|
|
|
struct s5p_uart {
|
2009-10-15 02:19:15 +00:00
|
|
|
unsigned int ulcon;
|
|
|
|
unsigned int ucon;
|
|
|
|
unsigned int ufcon;
|
|
|
|
unsigned int umcon;
|
|
|
|
unsigned int utrstat;
|
|
|
|
unsigned int uerstat;
|
|
|
|
unsigned int ufstat;
|
|
|
|
unsigned int umstat;
|
2009-10-01 08:20:01 +00:00
|
|
|
unsigned char utxh;
|
|
|
|
unsigned char res1[3];
|
|
|
|
unsigned char urxh;
|
|
|
|
unsigned char res2[3];
|
2009-10-15 02:19:15 +00:00
|
|
|
unsigned int ubrdiv;
|
2010-09-28 05:35:02 +00:00
|
|
|
union br_rest rest;
|
|
|
|
unsigned char res3[0x3d0];
|
2009-10-01 08:20:01 +00:00
|
|
|
};
|
2010-09-28 05:35:02 +00:00
|
|
|
|
2011-01-24 05:43:25 +00:00
|
|
|
static inline int s5p_uart_divslot(void)
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
2010-09-28 05:35:02 +00:00
|
|
|
|
2009-10-01 08:20:01 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
#endif
|