aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-s3c2410
diff options
context:
space:
mode:
authorMatt Reimer <mreimer@vpop.net>2007-02-12 14:42:52 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-02-12 17:22:09 -0500
commitb05f87172f904b28bd5ac058ebfb4e216b843efe (patch)
treea64364b0ac6fa01d24d131ee0b4f14e3c054ddca /include/asm-arm/arch-s3c2410
parent07b04595e3630594773223874827f5bbd03fc289 (diff)
[ARM] 4168/1: S3C24XX: use defines instead of numbers
Use defines instead of numbers. Signed-off-by: Matt Reimer <mreimer@vpop.net> Acked-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-s3c2410')
-rw-r--r--include/asm-arm/arch-s3c2410/system.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/asm-arm/arch-s3c2410/system.h b/include/asm-arm/arch-s3c2410/system.h
index ecf250db45fb..41aeb731c5a0 100644
--- a/include/asm-arm/arch-s3c2410/system.h
+++ b/include/asm-arm/arch-s3c2410/system.h
@@ -23,7 +23,6 @@ void (*s3c24xx_idle)(void);
23 23
24void s3c24xx_default_idle(void) 24void s3c24xx_default_idle(void)
25{ 25{
26 void __iomem *reg = S3C2410_CLKCON;
27 unsigned long tmp; 26 unsigned long tmp;
28 int i; 27 int i;
29 28
@@ -33,16 +32,18 @@ void s3c24xx_default_idle(void)
33 32
34 /* Warning: going into idle state upsets jtag scanning */ 33 /* Warning: going into idle state upsets jtag scanning */
35 34
36 __raw_writel(__raw_readl(reg) | (1<<2), reg); 35 __raw_writel(__raw_readl(S3C2410_CLKCON) | S3C2410_CLKCON_IDLE,
36 S3C2410_CLKCON);
37 37
38 /* the samsung port seems to do a loop and then unset idle.. */ 38 /* the samsung port seems to do a loop and then unset idle.. */
39 for (i = 0; i < 50; i++) { 39 for (i = 0; i < 50; i++) {
40 tmp += __raw_readl(reg); /* ensure loop not optimised out */ 40 tmp += __raw_readl(S3C2410_CLKCON); /* ensure loop not optimised out */
41 } 41 }
42 42
43 /* this bit is not cleared on re-start... */ 43 /* this bit is not cleared on re-start... */
44 44
45 __raw_writel(__raw_readl(reg) & ~(1<<2), reg); 45 __raw_writel(__raw_readl(S3C2410_CLKCON) & ~S3C2410_CLKCON_IDLE,
46 S3C2410_CLKCON);
46} 47}
47 48
48static void arch_idle(void) 49static void arch_idle(void)