Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295326
b: refs/heads/master
c: 50edbf7
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Pitre authored and Nicolas Pitre committed Jan 20, 2012
1 parent 168f2d2 commit 4a02572
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 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: 8925b0f88ec3f6c65418bf5f430a16a827f4c77b
refs/heads/master: 50edbf78f566bcb7749c558129a849c63ae15838
18 changes: 18 additions & 0 deletions trunk/arch/arm/mach-h720x/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,21 @@ void h720x_restart(char mode, const char *cmd)
{
CPU_REG (PMU_BASE, PMU_STAT) |= PMU_WARMRESET;
}

static void h720x__idle(void)
{
CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_IDLE;
nop();
nop();
CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_RUN;
nop();
nop();
}

static int __init h720x_idle_init(void)
{
arm_pm_idle = h720x__idle;
return 0;
}

arch_initcall(h720x_idle_init);
7 changes: 1 addition & 6 deletions trunk/arch/arm/mach-h720x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@

static void arch_idle(void)
{
CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_IDLE;
nop();
nop();
CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_RUN;
nop();
nop();
cpu_do_idle();
}

#endif

0 comments on commit 4a02572

Please sign in to comment.