aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-s3c2410/debug-macro.S
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-s3c2410/debug-macro.S')
-rw-r--r--include/asm-arm/arch-s3c2410/debug-macro.S13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/asm-arm/arch-s3c2410/debug-macro.S b/include/asm-arm/arch-s3c2410/debug-macro.S
index 5f8223e700d3..93064860e0e5 100644
--- a/include/asm-arm/arch-s3c2410/debug-macro.S
+++ b/include/asm-arm/arch-s3c2410/debug-macro.S
@@ -10,9 +10,6 @@
10 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as 11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation. 12 * published by the Free Software Foundation.
13 *
14 * Modifications:
15 * 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
16*/ 13*/
17 14
18#include <asm/arch/map.h> 15#include <asm/arch/map.h>
@@ -33,7 +30,7 @@
33 .endm 30 .endm
34 31
35 .macro senduart,rd,rx 32 .macro senduart,rd,rx
36 str \rd, [\rx, # S3C2410_UTXH ] 33 strb \rd, [\rx, # S3C2410_UTXH ]
37 .endm 34 .endm
38 35
39 .macro busyuart, rd, rx 36 .macro busyuart, rd, rx
@@ -42,6 +39,12 @@
42 beq 1001f @ 39 beq 1001f @
43 @ FIFO enabled... 40 @ FIFO enabled...
441003: 411003:
42 @ check for arm920 vs arm926. currently assume all arm926
43 @ devices have an 64 byte FIFO identical to the s3c2440
44 mrc p15, 0, \rd, c0, c0
45 and \rd, \rd, #0xff0
46 teq \rd, #0x260
47 beq 1004f
45 mrc p15, 0, \rd, c1, c0 48 mrc p15, 0, \rd, c1, c0
46 tst \rd, #1 49 tst \rd, #1
47 addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART) 50 addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART)
@@ -50,7 +53,7 @@
50 ldr \rd, [ \rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0) ] 53 ldr \rd, [ \rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0) ]
51 and \rd, \rd, #0x00ff0000 54 and \rd, \rd, #0x00ff0000
52 teq \rd, #0x00440000 @ is it 2440? 55 teq \rd, #0x00440000 @ is it 2440?
53 561004:
54 ldr \rd, [ \rx, # S3C2410_UFSTAT ] 57 ldr \rd, [ \rx, # S3C2410_UFSTAT ]
55 moveq \rd, \rd, lsr #SHIFT_2440TXF 58 moveq \rd, \rd, lsr #SHIFT_2440TXF
56 tst \rd, #S3C2410_UFSTAT_TXFULL 59 tst \rd, #S3C2410_UFSTAT_TXFULL