diff options
author | Tony Lindgren <tony@atomide.com> | 2010-02-15 11:49:01 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 11:49:01 -0500 |
commit | 0c8219f0302d0d27fda52c790d38406801e547ec (patch) | |
tree | 96dc93845e4a8b947fd92b4bab71efd241a02a8e /arch/arm/plat-omap/include/plat/serial.h | |
parent | 4f2c49fedf833e522001bc51824b894732900a3d (diff) |
omap: Make uncompress code and DEBUG_LL code generic
Define arch_decomp_setup() the same way as some other
architectures do. Use arch_id to configure the debug uart
based on the machine_is by storing it into the uart
scratchpad register for DEBUG_LL code to use.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/serial.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/serial.h | 33 |
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 || \ |