diff options
author | Ben Dooks <ben-linux@fluff.org> | 2007-07-22 11:10:23 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-07-22 11:44:29 -0400 |
commit | cbc4dbffc89fbaada94ae7873ad6631a701fd00e (patch) | |
tree | eb3bf936404858651972b01fb11430dd6c7525e3 /include/asm-arm/plat-s3c | |
parent | b2627588cbeb70364357048854affd52bf02fe64 (diff) |
[ARM] 4512/1: S3C: rename the debug macros for per-cpu updates
Update the debug macros for use with the new per-cpu
configuration and usage.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/plat-s3c')
-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 @ |