diff options
author | Hemant Pedanekar <hemantp@ti.com> | 2011-02-15 12:36:17 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-16 11:31:53 -0500 |
commit | 4d887a250d6294d4e17851da46d6eab4de83c91e (patch) | |
tree | 1822f2708901e28f49ef6393e0d7fd5e29948148 /arch/arm/mach-omap2/include/mach | |
parent | 2c87fb2e644d9141c8723a44a320bb5850790b67 (diff) |
TI816X: Add low level debug support
This patch adds support for low level debugging on TI816X boards. Currently the
support for UART3 console on TI816X EVM is added.
Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/include/mach')
-rw-r--r-- | arch/arm/mach-omap2/include/mach/debug-macro.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S index 6a4d4136002e..e1b0f17b0927 100644 --- a/arch/arm/mach-omap2/include/mach/debug-macro.S +++ b/arch/arm/mach-omap2/include/mach/debug-macro.S | |||
@@ -69,6 +69,12 @@ omap_uart_lsr: .word 0 | |||
69 | beq 34f @ configure OMAP3UART4 | 69 | beq 34f @ configure OMAP3UART4 |
70 | cmp \rp, #OMAP4UART4 @ only on 44xx | 70 | cmp \rp, #OMAP4UART4 @ only on 44xx |
71 | beq 44f @ configure OMAP4UART4 | 71 | beq 44f @ configure OMAP4UART4 |
72 | cmp \rp, #TI816XUART1 @ ti816x UART offsets different | ||
73 | beq 81f @ configure UART1 | ||
74 | cmp \rp, #TI816XUART2 @ ti816x UART offsets different | ||
75 | beq 82f @ configure UART2 | ||
76 | cmp \rp, #TI816XUART3 @ ti816x UART offsets different | ||
77 | beq 83f @ configure UART3 | ||
72 | cmp \rp, #ZOOM_UART @ only on zoom2/3 | 78 | cmp \rp, #ZOOM_UART @ only on zoom2/3 |
73 | beq 95f @ configure ZOOM_UART | 79 | beq 95f @ configure ZOOM_UART |
74 | 80 | ||
@@ -91,6 +97,12 @@ omap_uart_lsr: .word 0 | |||
91 | b 98f | 97 | b 98f |
92 | 44: mov \rp, #UART_OFFSET(OMAP4_UART4_BASE) | 98 | 44: mov \rp, #UART_OFFSET(OMAP4_UART4_BASE) |
93 | b 98f | 99 | b 98f |
100 | 81: mov \rp, #UART_OFFSET(TI816X_UART1_BASE) | ||
101 | b 98f | ||
102 | 82: mov \rp, #UART_OFFSET(TI816X_UART2_BASE) | ||
103 | b 98f | ||
104 | 83: mov \rp, #UART_OFFSET(TI816X_UART3_BASE) | ||
105 | b 98f | ||
94 | 95: ldr \rp, =ZOOM_UART_BASE | 106 | 95: ldr \rp, =ZOOM_UART_BASE |
95 | mrc p15, 0, \rv, c1, c0 | 107 | mrc p15, 0, \rv, c1, c0 |
96 | tst \rv, #1 @ MMU enabled? | 108 | tst \rv, #1 @ MMU enabled? |