diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /arch/arm/mach-msm/include/mach/debug-macro.S | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'arch/arm/mach-msm/include/mach/debug-macro.S')
-rw-r--r-- | arch/arm/mach-msm/include/mach/debug-macro.S | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/arch/arm/mach-msm/include/mach/debug-macro.S b/arch/arm/mach-msm/include/mach/debug-macro.S index 1db3c97dbc49..528750f307e9 100644 --- a/arch/arm/mach-msm/include/mach/debug-macro.S +++ b/arch/arm/mach-msm/include/mach/debug-macro.S | |||
@@ -14,15 +14,18 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | |||
18 | |||
17 | #include <mach/hardware.h> | 19 | #include <mach/hardware.h> |
18 | #include <mach/msm_iomap.h> | 20 | #include <mach/msm_iomap.h> |
19 | 21 | ||
20 | .macro addruart,rx | 22 | #ifdef CONFIG_MSM_DEBUG_UART |
23 | .macro addruart, rx, tmp | ||
21 | @ see if the MMU is enabled and select appropriate base address | 24 | @ see if the MMU is enabled and select appropriate base address |
22 | mrc p15, 0, \rx, c1, c0 | 25 | mrc p15, 0, \rx, c1, c0 |
23 | tst \rx, #1 | 26 | tst \rx, #1 |
24 | ldreq \rx, =MSM_UART1_PHYS | 27 | ldreq \rx, =MSM_DEBUG_UART_PHYS |
25 | movne \rx, #0 | 28 | ldrne \rx, =MSM_DEBUG_UART_BASE |
26 | .endm | 29 | .endm |
27 | 30 | ||
28 | .macro senduart,rd,rx | 31 | .macro senduart,rd,rx |
@@ -32,13 +35,20 @@ | |||
32 | 35 | ||
33 | .macro waituart,rd,rx | 36 | .macro waituart,rd,rx |
34 | @ wait for TX_READY | 37 | @ wait for TX_READY |
35 | teq \rx, #0 | 38 | 1001: ldr \rd, [\rx, #0x08] |
36 | bne 2f | ||
37 | 1: ldr \rd, [\rx, #0x08] | ||
38 | tst \rd, #0x04 | 39 | tst \rd, #0x04 |
39 | beq 1b | 40 | beq 1001b |
40 | 2: | 41 | .endm |
42 | #else | ||
43 | .macro addruart, rx, tmp | ||
44 | .endm | ||
45 | |||
46 | .macro senduart,rd,rx | ||
47 | .endm | ||
48 | |||
49 | .macro waituart,rd,rx | ||
41 | .endm | 50 | .endm |
51 | #endif | ||
42 | 52 | ||
43 | .macro busyuart,rd,rx | 53 | .macro busyuart,rd,rx |
44 | .endm | 54 | .endm |