diff options
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/debug/msm.S | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/arm/include/debug/msm.S b/arch/arm/include/debug/msm.S index e55a9426b496..b03024fa671f 100644 --- a/arch/arm/include/debug/msm.S +++ b/arch/arm/include/debug/msm.S | |||
@@ -16,24 +16,17 @@ | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | .macro addruart, rp, rv, tmp | 18 | .macro addruart, rp, rv, tmp |
19 | #ifdef CONFIG_DEBUG_UART_PHYS | ||
20 | ldr \rp, =CONFIG_DEBUG_UART_PHYS | 19 | ldr \rp, =CONFIG_DEBUG_UART_PHYS |
21 | ldr \rv, =CONFIG_DEBUG_UART_VIRT | 20 | ldr \rv, =CONFIG_DEBUG_UART_VIRT |
22 | #endif | ||
23 | .endm | 21 | .endm |
24 | 22 | ||
25 | .macro senduart, rd, rx | 23 | .macro senduart, rd, rx |
26 | ARM_BE8(rev \rd, \rd ) | 24 | ARM_BE8(rev \rd, \rd ) |
27 | #ifdef CONFIG_DEBUG_QCOM_UARTDM | ||
28 | @ Write the 1 character to UARTDM_TF | 25 | @ Write the 1 character to UARTDM_TF |
29 | str \rd, [\rx, #0x70] | 26 | str \rd, [\rx, #0x70] |
30 | #else | ||
31 | str \rd, [\rx, #0x0C] | ||
32 | #endif | ||
33 | .endm | 27 | .endm |
34 | 28 | ||
35 | .macro waituart, rd, rx | 29 | .macro waituart, rd, rx |
36 | #ifdef CONFIG_DEBUG_QCOM_UARTDM | ||
37 | @ check for TX_EMT in UARTDM_SR | 30 | @ check for TX_EMT in UARTDM_SR |
38 | ldr \rd, [\rx, #0x08] | 31 | ldr \rd, [\rx, #0x08] |
39 | ARM_BE8(rev \rd, \rd ) | 32 | ARM_BE8(rev \rd, \rd ) |
@@ -55,13 +48,6 @@ ARM_BE8(rev \rd, \rd ) | |||
55 | str \rd, [\rx, #0x40] | 48 | str \rd, [\rx, #0x40] |
56 | @ UARTDM reg. Read to induce delay | 49 | @ UARTDM reg. Read to induce delay |
57 | ldr \rd, [\rx, #0x08] | 50 | ldr \rd, [\rx, #0x08] |
58 | #else | ||
59 | @ wait for TX_READY | ||
60 | 1001: ldr \rd, [\rx, #0x08] | ||
61 | ARM_BE8(rev \rd, \rd ) | ||
62 | tst \rd, #0x04 | ||
63 | beq 1001b | ||
64 | #endif | ||
65 | .endm | 51 | .endm |
66 | 52 | ||
67 | .macro busyuart, rd, rx | 53 | .macro busyuart, rd, rx |