Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48935
b: refs/heads/master
c: b05f871
h: refs/heads/master
i:
  48933: 3eb72cd
  48931: 1b2a085
  48927: 98526b8
v: v3
  • Loading branch information
Matt Reimer authored and Russell King committed Feb 12, 2007
1 parent 91ffc1c commit e590c6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07b04595e3630594773223874827f5bbd03fc289
refs/heads/master: b05f87172f904b28bd5ac058ebfb4e216b843efe
9 changes: 5 additions & 4 deletions trunk/include/asm-arm/arch-s3c2410/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ void (*s3c24xx_idle)(void);

void s3c24xx_default_idle(void)
{
void __iomem *reg = S3C2410_CLKCON;
unsigned long tmp;
int i;

Expand All @@ -33,16 +32,18 @@ void s3c24xx_default_idle(void)

/* 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.. */
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... */

__raw_writel(__raw_readl(reg) & ~(1<<2), reg);
__raw_writel(__raw_readl(S3C2410_CLKCON) & ~S3C2410_CLKCON_IDLE,
S3C2410_CLKCON);
}

static void arch_idle(void)
Expand Down

0 comments on commit e590c6a

Please sign in to comment.