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/* OMAP2 serial ports */ 128c2ecf20Sopenharmony_ci#define OMAP2_UART1_BASE 0x4806a000 138c2ecf20Sopenharmony_ci#define OMAP2_UART2_BASE 0x4806c000 148c2ecf20Sopenharmony_ci#define OMAP2_UART3_BASE 0x4806e000 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* OMAP3 serial ports */ 178c2ecf20Sopenharmony_ci#define OMAP3_UART1_BASE OMAP2_UART1_BASE 188c2ecf20Sopenharmony_ci#define OMAP3_UART2_BASE OMAP2_UART2_BASE 198c2ecf20Sopenharmony_ci#define OMAP3_UART3_BASE 0x49020000 208c2ecf20Sopenharmony_ci#define OMAP3_UART4_BASE 0x49042000 /* Only on 36xx */ 218c2ecf20Sopenharmony_ci#define OMAP3_UART4_AM35XX_BASE 0x4809E000 /* Only on AM35xx */ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/* OMAP4 serial ports */ 248c2ecf20Sopenharmony_ci#define OMAP4_UART1_BASE OMAP2_UART1_BASE 258c2ecf20Sopenharmony_ci#define OMAP4_UART2_BASE OMAP2_UART2_BASE 268c2ecf20Sopenharmony_ci#define OMAP4_UART3_BASE 0x48020000 278c2ecf20Sopenharmony_ci#define OMAP4_UART4_BASE 0x4806e000 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* TI81XX serial ports */ 308c2ecf20Sopenharmony_ci#define TI81XX_UART1_BASE 0x48020000 318c2ecf20Sopenharmony_ci#define TI81XX_UART2_BASE 0x48022000 328c2ecf20Sopenharmony_ci#define TI81XX_UART3_BASE 0x48024000 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci/* AM3505/3517 UART4 */ 358c2ecf20Sopenharmony_ci#define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */ 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci/* AM33XX serial port */ 388c2ecf20Sopenharmony_ci#define AM33XX_UART1_BASE 0x44E09000 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* OMAP5 serial ports */ 418c2ecf20Sopenharmony_ci#define OMAP5_UART1_BASE OMAP2_UART1_BASE 428c2ecf20Sopenharmony_ci#define OMAP5_UART2_BASE OMAP2_UART2_BASE 438c2ecf20Sopenharmony_ci#define OMAP5_UART3_BASE OMAP4_UART3_BASE 448c2ecf20Sopenharmony_ci#define OMAP5_UART4_BASE OMAP4_UART4_BASE 458c2ecf20Sopenharmony_ci#define OMAP5_UART5_BASE 0x48066000 468c2ecf20Sopenharmony_ci#define OMAP5_UART6_BASE 0x48068000 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci/* External port on Zoom2/3 */ 498c2ecf20Sopenharmony_ci#define ZOOM_UART_BASE 0x10000000 508c2ecf20Sopenharmony_ci#define ZOOM_UART_VIRT 0xfa400000 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#define OMAP_PORT_SHIFT 2 538c2ecf20Sopenharmony_ci#define ZOOM_PORT_SHIFT 1 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci#define OMAP24XX_BASE_BAUD (48000000/16) 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci#ifndef __ASSEMBLER__ 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_cistruct omap_board_data; 608c2ecf20Sopenharmony_cistruct omap_uart_port_info; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ciextern void omap_serial_init(void); 638c2ecf20Sopenharmony_ciextern void omap_serial_board_init(struct omap_uart_port_info *platform_data); 648c2ecf20Sopenharmony_ciextern void omap_serial_init_port(struct omap_board_data *bdata, 658c2ecf20Sopenharmony_ci struct omap_uart_port_info *platform_data); 668c2ecf20Sopenharmony_ci#endif 67