aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-msm/include/mach/debug-macro.S
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-10-27 12:32:29 +0000
committerBen Dooks <ben-linux@fluff.org>2008-10-27 12:32:29 +0000
commitb99053eefce89c5c8500517f5f065c85b57d98ee (patch)
tree2e99059d55e32db39a2ada348c39f71bb473c0c1 /arch/arm/mach-msm/include/mach/debug-macro.S
parent761e0ee0f0beecee7c2528588b043609b880de58 (diff)
parentf8d56f1771e4867acc461146764b4feeb5245669 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into s3c64xx
Conflicts: arch/arm/mm/Kconfig
Diffstat (limited to 'arch/arm/mach-msm/include/mach/debug-macro.S')
-rw-r--r--arch/arm/mach-msm/include/mach/debug-macro.S8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/include/mach/debug-macro.S b/arch/arm/mach-msm/include/mach/debug-macro.S
index 528eef4b605..1db3c97dbc4 100644
--- a/arch/arm/mach-msm/include/mach/debug-macro.S
+++ b/arch/arm/mach-msm/include/mach/debug-macro.S
@@ -22,18 +22,22 @@
mrc p15, 0, \rx, c1, c0
tst \rx, #1
ldreq \rx, =MSM_UART1_PHYS
- ldrne \rx, =MSM_UART1_BASE
+ movne \rx, #0
.endm
.macro senduart,rd,rx
- str \rd, [\rx, #0x0C]
+ teq \rx, #0
+ strne \rd, [\rx, #0x0C]
.endm
.macro waituart,rd,rx
@ wait for TX_READY
+ teq \rx, #0
+ bne 2f
1: ldr \rd, [\rx, #0x08]
tst \rd, #0x04
beq 1b
+2:
.endm
.macro busyuart,rd,rx