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