xref: /OK3568_Linux_fs/kernel/arch/arm/mach-omap1/include/mach/serial.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright (C) 2009 Texas Instruments
3*4882a593Smuzhiyun  * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This program is distributed in the hope that it will be useful,
6*4882a593Smuzhiyun  * but WITHOUT ANY WARRANTY; without even the implied warranty of
7*4882a593Smuzhiyun  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8*4882a593Smuzhiyun  * GNU General Public License for more details.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifndef __ASM_ARCH_SERIAL_H
12*4882a593Smuzhiyun #define __ASM_ARCH_SERIAL_H
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #include <linux/init.h>
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun /*
17*4882a593Smuzhiyun  * Memory entry used for the DEBUG_LL UART configuration, relative to
18*4882a593Smuzhiyun  * start of RAM. See also uncompress.h and debug-macro.S.
19*4882a593Smuzhiyun  *
20*4882a593Smuzhiyun  * Note that using a memory location for storing the UART configuration
21*4882a593Smuzhiyun  * has at least two limitations:
22*4882a593Smuzhiyun  *
23*4882a593Smuzhiyun  * 1. Kernel uncompress code cannot overlap OMAP_UART_INFO as the
24*4882a593Smuzhiyun  *    uncompress code could then partially overwrite itself
25*4882a593Smuzhiyun  * 2. We assume printascii is called at least once before paging_init,
26*4882a593Smuzhiyun  *    and addruart has a chance to read OMAP_UART_INFO
27*4882a593Smuzhiyun  */
28*4882a593Smuzhiyun #define OMAP_UART_INFO_OFS	0x3ffc
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun #define OMAP_PORT_SHIFT		2
31*4882a593Smuzhiyun #define OMAP7XX_PORT_SHIFT	0
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #define OMAP1510_BASE_BAUD	(12000000/16)
34*4882a593Smuzhiyun #define OMAP16XX_BASE_BAUD	(48000000/16)
35*4882a593Smuzhiyun 
36*4882a593Smuzhiyun /*
37*4882a593Smuzhiyun  * DEBUG_LL port encoding stored into the UART1 scratchpad register by
38*4882a593Smuzhiyun  * decomp_setup in uncompress.h
39*4882a593Smuzhiyun  */
40*4882a593Smuzhiyun #define OMAP1UART1		11
41*4882a593Smuzhiyun #define OMAP1UART2		12
42*4882a593Smuzhiyun #define OMAP1UART3		13
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun #ifndef __ASSEMBLER__
45*4882a593Smuzhiyun extern void omap_serial_init(void);
46*4882a593Smuzhiyun #endif
47*4882a593Smuzhiyun 
48*4882a593Smuzhiyun #endif
49