diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-08-31 19:57:37 +0200 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2011-09-26 16:11:25 +0200 |
commit | dd185456efce7f326c058fc12fd0df17bd8466eb (patch) | |
tree | 78abc6ff08a905c25eda49b7f67e6790c6257f7c /arch/arm/mach-omap2/include | |
parent | ARM: add an extra temp register to the low level debugging addruart macro (diff) | |
download | linux-dd185456efce7f326c058fc12fd0df17bd8466eb.tar.xz linux-dd185456efce7f326c058fc12fd0df17bd8466eb.zip |
ARM: plat-omap: make OMAP_UART_INFO into a relative offset
This is the first step to remove PLAT_PHYS_OFFSET usage from the debug
UART code.
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/include')
-rw-r--r-- | arch/arm/mach-omap2/include/mach/debug-macro.S | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S index fbd23ec81a20..745e2ff3e906 100644 --- a/arch/arm/mach-omap2/include/mach/debug-macro.S +++ b/arch/arm/mach-omap2/include/mach/debug-macro.S @@ -49,11 +49,10 @@ omap_uart_lsr: .word 0 bne 99f @ already configured /* Check the debug UART configuration set in uncompress.h */ - mrc p15, 0, \rp, c1, c0 - tst \rp, #1 @ MMU enabled? - ldreq \rp, =OMAP_UART_INFO @ MMU not enabled - ldrne \rp, =omap_uart_p2v(OMAP_UART_INFO) @ MMU enabled - ldr \rp, [\rp, #0] + mov \rp, pc + ldr \rv, =OMAP_UART_INFO_OFS + and \rp, \rp, #0xff000000 + ldr \rp, [\rp, \rv] /* Select the UART to use based on the UART1 scratchpad value */ cmp \rp, #0 @ no port configured? |