162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Copyright (C) 2009 Texas Instruments 362306a36Sopenharmony_ci * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com> 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * This program is distributed in the hope that it will be useful, 662306a36Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 762306a36Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 862306a36Sopenharmony_ci * GNU General Public License for more details. 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#ifndef __ASM_ARCH_SERIAL_H 1262306a36Sopenharmony_ci#define __ASM_ARCH_SERIAL_H 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#include <linux/init.h> 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci/* 1762306a36Sopenharmony_ci * Memory entry used for the DEBUG_LL UART configuration, relative to 1862306a36Sopenharmony_ci * start of RAM. See also uncompress.h and debug-macro.S. 1962306a36Sopenharmony_ci * 2062306a36Sopenharmony_ci * Note that using a memory location for storing the UART configuration 2162306a36Sopenharmony_ci * has at least two limitations: 2262306a36Sopenharmony_ci * 2362306a36Sopenharmony_ci * 1. Kernel uncompress code cannot overlap OMAP_UART_INFO as the 2462306a36Sopenharmony_ci * uncompress code could then partially overwrite itself 2562306a36Sopenharmony_ci * 2. We assume printascii is called at least once before paging_init, 2662306a36Sopenharmony_ci * and addruart has a chance to read OMAP_UART_INFO 2762306a36Sopenharmony_ci */ 2862306a36Sopenharmony_ci#define OMAP_UART_INFO_OFS 0x3ffc 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#define OMAP_PORT_SHIFT 2 3162306a36Sopenharmony_ci#define OMAP7XX_PORT_SHIFT 0 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#define OMAP1510_BASE_BAUD (12000000/16) 3462306a36Sopenharmony_ci#define OMAP16XX_BASE_BAUD (48000000/16) 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci/* 3762306a36Sopenharmony_ci * DEBUG_LL port encoding stored into the UART1 scratchpad register by 3862306a36Sopenharmony_ci * decomp_setup in uncompress.h 3962306a36Sopenharmony_ci */ 4062306a36Sopenharmony_ci#define OMAP1UART1 11 4162306a36Sopenharmony_ci#define OMAP1UART2 12 4262306a36Sopenharmony_ci#define OMAP1UART3 13 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci#ifndef __ASSEMBLER__ 4562306a36Sopenharmony_ciextern void omap_serial_init(void); 4662306a36Sopenharmony_ci#endif 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci#endif 49