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 /* OMAP2 serial ports */
0012 #define OMAP2_UART1_BASE    0x4806a000
0013 #define OMAP2_UART2_BASE    0x4806c000
0014 #define OMAP2_UART3_BASE    0x4806e000
0015 
0016 /* OMAP3 serial ports */
0017 #define OMAP3_UART1_BASE    OMAP2_UART1_BASE
0018 #define OMAP3_UART2_BASE    OMAP2_UART2_BASE
0019 #define OMAP3_UART3_BASE    0x49020000
0020 #define OMAP3_UART4_BASE    0x49042000  /* Only on 36xx */
0021 #define OMAP3_UART4_AM35XX_BASE 0x4809E000  /* Only on AM35xx */
0022 
0023 /* OMAP4 serial ports */
0024 #define OMAP4_UART1_BASE    OMAP2_UART1_BASE
0025 #define OMAP4_UART2_BASE    OMAP2_UART2_BASE
0026 #define OMAP4_UART3_BASE    0x48020000
0027 #define OMAP4_UART4_BASE    0x4806e000
0028 
0029 /* TI81XX serial ports */
0030 #define TI81XX_UART1_BASE   0x48020000
0031 #define TI81XX_UART2_BASE   0x48022000
0032 #define TI81XX_UART3_BASE   0x48024000
0033 
0034 /* AM3505/3517 UART4 */
0035 #define AM35XX_UART4_BASE   0x4809E000  /* Only on AM3505/3517 */
0036 
0037 /* AM33XX serial port */
0038 #define AM33XX_UART1_BASE   0x44E09000
0039 
0040 /* OMAP5 serial ports */
0041 #define OMAP5_UART1_BASE    OMAP2_UART1_BASE
0042 #define OMAP5_UART2_BASE    OMAP2_UART2_BASE
0043 #define OMAP5_UART3_BASE    OMAP4_UART3_BASE
0044 #define OMAP5_UART4_BASE    OMAP4_UART4_BASE
0045 #define OMAP5_UART5_BASE    0x48066000
0046 #define OMAP5_UART6_BASE    0x48068000
0047 
0048 /* External port on Zoom2/3 */
0049 #define ZOOM_UART_BASE      0x10000000
0050 #define ZOOM_UART_VIRT      0xfa400000
0051 
0052 #define OMAP_PORT_SHIFT     2
0053 #define ZOOM_PORT_SHIFT     1
0054 
0055 #define OMAP24XX_BASE_BAUD  (48000000/16)
0056 
0057 #ifndef __ASSEMBLER__
0058 
0059 struct omap_board_data;
0060 struct omap_uart_port_info;
0061 
0062 extern void omap_serial_init(void);
0063 extern void omap_serial_board_init(struct omap_uart_port_info *platform_data);
0064 extern void omap_serial_init_port(struct omap_board_data *bdata,
0065         struct omap_uart_port_info *platform_data);
0066 #endif