diff options
Diffstat (limited to 'include/asm-arm/plat-s3c/debug-macro.S')
-rw-r--r-- | include/asm-arm/plat-s3c/debug-macro.S | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/include/asm-arm/plat-s3c/debug-macro.S b/include/asm-arm/plat-s3c/debug-macro.S index a43bbfa90a0b..84c40b847da8 100644 --- a/include/asm-arm/plat-s3c/debug-macro.S +++ b/include/asm-arm/plat-s3c/debug-macro.S | |||
@@ -11,7 +11,26 @@ | |||
11 | 11 | ||
12 | #include <asm/plat-s3c/regs-serial.h> | 12 | #include <asm/plat-s3c/regs-serial.h> |
13 | 13 | ||
14 | #define S3C2410_UART1_OFF (0x4000) | 14 | /* The S3C2440 implementations are used by default as they are the |
15 | * most widely re-used */ | ||
16 | |||
17 | .macro fifo_level_s3c2440 rd, rx | ||
18 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | ||
19 | and \rd, \rd, #S3C2440_UFSTAT_TXMASK | ||
20 | .endm | ||
21 | |||
22 | #ifndef fifo_level | ||
23 | #define fifo_level fifo_level_s3c2410 | ||
24 | #endif | ||
25 | |||
26 | .macro fifo_full_s3c2440 rd, rx | ||
27 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | ||
28 | tst \rd, #S3C2440_UFSTAT_TXFULL | ||
29 | .endm | ||
30 | |||
31 | #ifndef fifo_full | ||
32 | #define fifo_full fifo_full_s3c2440 | ||
33 | #endif | ||
15 | 34 | ||
16 | .macro senduart,rd,rx | 35 | .macro senduart,rd,rx |
17 | strb \rd, [\rx, # S3C2410_UTXH ] | 36 | strb \rd, [\rx, # S3C2410_UTXH ] |
@@ -37,7 +56,6 @@ | |||
37 | .endm | 56 | .endm |
38 | 57 | ||
39 | .macro waituart,rd,rx | 58 | .macro waituart,rd,rx |
40 | |||
41 | ldr \rd, [ \rx, # S3C2410_UFCON ] | 59 | ldr \rd, [ \rx, # S3C2410_UFCON ] |
42 | tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? | 60 | tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? |
43 | beq 1001f @ | 61 | beq 1001f @ |