18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (C) 2009 Texas Instruments 38c2ecf20Sopenharmony_ci * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com> 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful, 68c2ecf20Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 78c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 88c2ecf20Sopenharmony_ci * GNU General Public License for more details. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_SERIAL_H 128c2ecf20Sopenharmony_ci#define __ASM_ARCH_SERIAL_H 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#include <linux/init.h> 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* 178c2ecf20Sopenharmony_ci * Memory entry used for the DEBUG_LL UART configuration, relative to 188c2ecf20Sopenharmony_ci * start of RAM. See also uncompress.h and debug-macro.S. 198c2ecf20Sopenharmony_ci * 208c2ecf20Sopenharmony_ci * Note that using a memory location for storing the UART configuration 218c2ecf20Sopenharmony_ci * has at least two limitations: 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * 1. Kernel uncompress code cannot overlap OMAP_UART_INFO as the 248c2ecf20Sopenharmony_ci * uncompress code could then partially overwrite itself 258c2ecf20Sopenharmony_ci * 2. We assume printascii is called at least once before paging_init, 268c2ecf20Sopenharmony_ci * and addruart has a chance to read OMAP_UART_INFO 278c2ecf20Sopenharmony_ci */ 288c2ecf20Sopenharmony_ci#define OMAP_UART_INFO_OFS 0x3ffc 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#define OMAP_PORT_SHIFT 2 318c2ecf20Sopenharmony_ci#define OMAP7XX_PORT_SHIFT 0 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#define OMAP1510_BASE_BAUD (12000000/16) 348c2ecf20Sopenharmony_ci#define OMAP16XX_BASE_BAUD (48000000/16) 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci/* 378c2ecf20Sopenharmony_ci * DEBUG_LL port encoding stored into the UART1 scratchpad register by 388c2ecf20Sopenharmony_ci * decomp_setup in uncompress.h 398c2ecf20Sopenharmony_ci */ 408c2ecf20Sopenharmony_ci#define OMAP1UART1 11 418c2ecf20Sopenharmony_ci#define OMAP1UART2 12 428c2ecf20Sopenharmony_ci#define OMAP1UART3 13 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#ifndef __ASSEMBLER__ 458c2ecf20Sopenharmony_ciextern void omap_serial_init(void); 468c2ecf20Sopenharmony_ci#endif 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci#endif 49