Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2009 Texas Instruments
0003  * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
0004  *
0005  * This program is distributed in the hope that it will be useful,
0006  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0007  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0008  * GNU General Public License for more details.
0009  */
0010 
0011 #ifndef __ASM_ARCH_SERIAL_H
0012 #define __ASM_ARCH_SERIAL_H
0013 
0014 #include <linux/init.h>
0015 
0016 /*
0017  * Memory entry used for the DEBUG_LL UART configuration, relative to
0018  * start of RAM. See also uncompress.h and debug-macro.S.
0019  *
0020  * Note that using a memory location for storing the UART configuration
0021  * has at least two limitations:
0022  *
0023  * 1. Kernel uncompress code cannot overlap OMAP_UART_INFO as the
0024  *    uncompress code could then partially overwrite itself
0025  * 2. We assume printascii is called at least once before paging_init,
0026  *    and addruart has a chance to read OMAP_UART_INFO
0027  */
0028 #define OMAP_UART_INFO_OFS  0x3ffc
0029 
0030 #define OMAP_PORT_SHIFT     2
0031 #define OMAP7XX_PORT_SHIFT  0
0032 
0033 #define OMAP1510_BASE_BAUD  (12000000/16)
0034 #define OMAP16XX_BASE_BAUD  (48000000/16)
0035 
0036 /*
0037  * DEBUG_LL port encoding stored into the UART1 scratchpad register by
0038  * decomp_setup in uncompress.h
0039  */
0040 #define OMAP1UART1      11
0041 #define OMAP1UART2      12
0042 #define OMAP1UART3      13
0043 
0044 #ifndef __ASSEMBLER__
0045 extern void omap_serial_init(void);
0046 #endif
0047 
0048 #endif