diff options
Diffstat (limited to 'arch/arm/mach-omap2/include/mach/debug-macro.S')
-rw-r--r-- | arch/arm/mach-omap2/include/mach/debug-macro.S | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S index 86979d7bd871..8d6da9a39d63 100644 --- a/arch/arm/mach-omap2/include/mach/debug-macro.S +++ b/arch/arm/mach-omap2/include/mach/debug-macro.S | |||
@@ -11,6 +11,10 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/serial_reg.h> | ||
15 | |||
16 | #include <plat/serial.h> | ||
17 | |||
14 | .macro addruart, rx, tmp | 18 | .macro addruart, rx, tmp |
15 | mrc p15, 0, \rx, c1, c0 | 19 | mrc p15, 0, \rx, c1, c0 |
16 | tst \rx, #1 @ MMU enabled? | 20 | tst \rx, #1 @ MMU enabled? |
@@ -44,15 +48,10 @@ | |||
44 | .endm | 48 | .endm |
45 | 49 | ||
46 | .macro busyuart,rd,rx | 50 | .macro busyuart,rd,rx |
47 | 1001: ldrb \rd, [\rx, #(0x5 << 2)] @ OMAP-1510 and friends | 51 | 1001: ldrb \rd, [\rx, #(UART_LSR << OMAP_PORT_SHIFT)] |
48 | and \rd, \rd, #0x60 | 52 | and \rd, \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
49 | teq \rd, #0x60 | 53 | teq \rd, #(UART_LSR_TEMT | UART_LSR_THRE) |
50 | beq 1002f | ||
51 | ldrb \rd, [\rx, #(0x5 << 0)] @ OMAP-730 only | ||
52 | and \rd, \rd, #0x60 | ||
53 | teq \rd, #0x60 | ||
54 | bne 1001b | 54 | bne 1001b |
55 | 1002: | ||
56 | .endm | 55 | .endm |
57 | 56 | ||
58 | .macro waituart,rd,rx | 57 | .macro waituart,rd,rx |