aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/include/plat/serial.h')
-rw-r--r--arch/arm/plat-omap/include/plat/serial.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/include/plat/serial.h b/arch/arm/plat-omap/include/plat/serial.h
index 7f5a7a88a6e..83dce4c4f7e 100644
--- a/arch/arm/plat-omap/include/plat/serial.h
+++ b/arch/arm/plat-omap/include/plat/serial.h
@@ -26,24 +26,49 @@
26#define OMAP2_UART3_BASE 0x4806e000 26#define OMAP2_UART3_BASE 0x4806e000
27 27
28/* OMAP3 serial ports */ 28/* OMAP3 serial ports */
29#define OMAP3_UART1_BASE 0x4806a000 29#define OMAP3_UART1_BASE OMAP2_UART1_BASE
30#define OMAP3_UART2_BASE 0x4806c000 30#define OMAP3_UART2_BASE OMAP2_UART2_BASE
31#define OMAP3_UART3_BASE 0x49020000 31#define OMAP3_UART3_BASE 0x49020000
32#define OMAP3_UART4_BASE 0x49042000 /* Only on 36xx */ 32#define OMAP3_UART4_BASE 0x49042000 /* Only on 36xx */
33 33
34/* OMAP4 serial ports */ 34/* OMAP4 serial ports */
35#define OMAP4_UART1_BASE 0x4806a000 35#define OMAP4_UART1_BASE OMAP2_UART1_BASE
36#define OMAP4_UART2_BASE 0x4806c000 36#define OMAP4_UART2_BASE OMAP2_UART2_BASE
37#define OMAP4_UART3_BASE 0x48020000 37#define OMAP4_UART3_BASE 0x48020000
38#define OMAP4_UART4_BASE 0x4806e000 38#define OMAP4_UART4_BASE 0x4806e000
39 39
40/* External port on Zoom2/3 */
41#define ZOOM_UART_BASE 0x10000000
42#define ZOOM_UART_VIRT 0xfb000000
43
40#define OMAP_PORT_SHIFT 2 44#define OMAP_PORT_SHIFT 2
41#define OMAP7XX_PORT_SHIFT 0 45#define OMAP7XX_PORT_SHIFT 0
46#define ZOOM_PORT_SHIFT 1
42 47
43#define OMAP1510_BASE_BAUD (12000000/16) 48#define OMAP1510_BASE_BAUD (12000000/16)
44#define OMAP16XX_BASE_BAUD (48000000/16) 49#define OMAP16XX_BASE_BAUD (48000000/16)
45#define OMAP24XX_BASE_BAUD (48000000/16) 50#define OMAP24XX_BASE_BAUD (48000000/16)
46 51
52/*
53 * DEBUG_LL port encoding stored into the UART1 scratchpad register by
54 * decomp_setup in uncompress.h
55 */
56#define OMAP1UART1 11
57#define OMAP1UART2 12
58#define OMAP1UART3 13
59#define OMAP2UART1 21
60#define OMAP2UART2 22
61#define OMAP2UART3 23
62#define OMAP3UART1 OMAP2UART1
63#define OMAP3UART2 OMAP2UART2
64#define OMAP3UART3 33
65#define OMAP3UART4 34 /* Only on 36xx */
66#define OMAP4UART1 OMAP2UART1
67#define OMAP4UART2 OMAP2UART2
68#define OMAP4UART3 43
69#define OMAP4UART4 44
70#define ZOOM_UART 95 /* Only on zoom2/3 */
71
47/* This is only used by 8250.c for omap1510 */ 72/* This is only used by 8250.c for omap1510 */
48#define is_omap_port(pt) ({int __ret = 0; \ 73#define is_omap_port(pt) ({int __ret = 0; \
49 if ((pt)->port.mapbase == OMAP1_UART1_BASE || \ 74 if ((pt)->port.mapbase == OMAP1_UART1_BASE || \