Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / arm / mach-omap2 / include / mach / serial.h
blob7ca1fcff453b4b3d16c29c0588ac15f05df7642e
1 /*
2 * Copyright (C) 2009 Texas Instruments
3 * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
5 * This program is distributed in the hope that it will be useful,
6 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8 * GNU General Public License for more details.
9 */
11 /* OMAP2 serial ports */
12 #define OMAP2_UART1_BASE 0x4806a000
13 #define OMAP2_UART2_BASE 0x4806c000
14 #define OMAP2_UART3_BASE 0x4806e000
16 /* OMAP3 serial ports */
17 #define OMAP3_UART1_BASE OMAP2_UART1_BASE
18 #define OMAP3_UART2_BASE OMAP2_UART2_BASE
19 #define OMAP3_UART3_BASE 0x49020000
20 #define OMAP3_UART4_BASE 0x49042000 /* Only on 36xx */
21 #define OMAP3_UART4_AM35XX_BASE 0x4809E000 /* Only on AM35xx */
23 /* OMAP4 serial ports */
24 #define OMAP4_UART1_BASE OMAP2_UART1_BASE
25 #define OMAP4_UART2_BASE OMAP2_UART2_BASE
26 #define OMAP4_UART3_BASE 0x48020000
27 #define OMAP4_UART4_BASE 0x4806e000
29 /* TI81XX serial ports */
30 #define TI81XX_UART1_BASE 0x48020000
31 #define TI81XX_UART2_BASE 0x48022000
32 #define TI81XX_UART3_BASE 0x48024000
34 /* AM3505/3517 UART4 */
35 #define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */
37 /* AM33XX serial port */
38 #define AM33XX_UART1_BASE 0x44E09000
40 /* OMAP5 serial ports */
41 #define OMAP5_UART1_BASE OMAP2_UART1_BASE
42 #define OMAP5_UART2_BASE OMAP2_UART2_BASE
43 #define OMAP5_UART3_BASE OMAP4_UART3_BASE
44 #define OMAP5_UART4_BASE OMAP4_UART4_BASE
45 #define OMAP5_UART5_BASE 0x48066000
46 #define OMAP5_UART6_BASE 0x48068000
48 /* External port on Zoom2/3 */
49 #define ZOOM_UART_BASE 0x10000000
50 #define ZOOM_UART_VIRT 0xfa400000
52 #define OMAP_PORT_SHIFT 2
53 #define ZOOM_PORT_SHIFT 1
55 #define OMAP24XX_BASE_BAUD (48000000/16)
57 #ifndef __ASSEMBLER__
59 struct omap_board_data;
60 struct omap_uart_port_info;
62 extern void omap_serial_init(void);
63 extern void omap_serial_board_init(struct omap_uart_port_info *platform_data);
64 extern void omap_serial_init_port(struct omap_board_data *bdata,
65 struct omap_uart_port_info *platform_data);
66 #endif