diff options
author | Minkyu Kang <mk7.kang@samsung.com> | 2015-11-20 15:24:57 +0900 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2015-11-30 17:17:01 +0900 |
commit | 225f5eeccd6c0d376a20c15897edd8c69500d8cc (patch) | |
tree | f1348e316a9c4b871d3cadbab9d9cdbe7ce5852a /arch/arm/mach-s5pc1xx/include/mach/uart.h | |
parent | fa8883a1e39a20e72aaa5093af0c80062cb95757 (diff) |
arm: s5pc1xx: move SoC to mach-s5pc1xx
move arm/arm/cpu/armv7/s5pc1xx to arch/arm/mach-s5pc1xx
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pc1xx/include/mach/uart.h')
-rw-r--r-- | arch/arm/mach-s5pc1xx/include/mach/uart.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pc1xx/include/mach/uart.h b/arch/arm/mach-s5pc1xx/include/mach/uart.h new file mode 100644 index 0000000000..26db098842 --- /dev/null +++ b/arch/arm/mach-s5pc1xx/include/mach/uart.h @@ -0,0 +1,44 @@ +/* + * (C) Copyright 2009 Samsung Electronics + * Minkyu Kang <mk7.kang@samsung.com> + * Heungjun Kim <riverful.kim@samsung.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __ASM_ARCH_UART_H_ +#define __ASM_ARCH_UART_H_ + +#ifndef __ASSEMBLY__ +/* baudrate rest value */ +union br_rest { + unsigned short slot; /* udivslot */ + unsigned char value; /* ufracval */ +}; + +struct s5p_uart { + unsigned int ulcon; + unsigned int ucon; + unsigned int ufcon; + unsigned int umcon; + unsigned int utrstat; + unsigned int uerstat; + unsigned int ufstat; + unsigned int umstat; + unsigned char utxh; + unsigned char res1[3]; + unsigned char urxh; + unsigned char res2[3]; + unsigned int ubrdiv; + union br_rest rest; + unsigned char res3[0x3d0]; +}; + +static inline int s5p_uart_divslot(void) +{ + return 1; +} + +#endif /* __ASSEMBLY__ */ + +#endif |