Commit b05f8717 authored by Matt Reimer's avatar Matt Reimer Committed by Russell King

[ARM] 4168/1: S3C24XX: use defines instead of numbers

Use defines instead of numbers.
Signed-off-by: default avatarMatt Reimer <mreimer@vpop.net>
Acked-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 07b04595
...@@ -23,7 +23,6 @@ void (*s3c24xx_idle)(void); ...@@ -23,7 +23,6 @@ void (*s3c24xx_idle)(void);
void s3c24xx_default_idle(void) void s3c24xx_default_idle(void)
{ {
void __iomem *reg = S3C2410_CLKCON;
unsigned long tmp; unsigned long tmp;
int i; int i;
...@@ -33,16 +32,18 @@ void s3c24xx_default_idle(void) ...@@ -33,16 +32,18 @@ void s3c24xx_default_idle(void)
/* Warning: going into idle state upsets jtag scanning */ /* Warning: going into idle state upsets jtag scanning */
__raw_writel(__raw_readl(reg) | (1<<2), reg); __raw_writel(__raw_readl(S3C2410_CLKCON) | S3C2410_CLKCON_IDLE,
S3C2410_CLKCON);
/* the samsung port seems to do a loop and then unset idle.. */ /* the samsung port seems to do a loop and then unset idle.. */
for (i = 0; i < 50; i++) { for (i = 0; i < 50; i++) {
tmp += __raw_readl(reg); /* ensure loop not optimised out */ tmp += __raw_readl(S3C2410_CLKCON); /* ensure loop not optimised out */
} }
/* this bit is not cleared on re-start... */ /* this bit is not cleared on re-start... */
__raw_writel(__raw_readl(reg) & ~(1<<2), reg); __raw_writel(__raw_readl(S3C2410_CLKCON) & ~S3C2410_CLKCON_IDLE,
S3C2410_CLKCON);
} }
static void arch_idle(void) static void arch_idle(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment