Skip to content

Commit

Permalink
blackfin: mach-bf609: pm: cleanup bfin_deepsleep
Browse files Browse the repository at this point in the history
In bfin_deepsleep(), using register instead of local variable and remove
unused dpmc register read.

Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
Steven Miao authored and Bob Liu committed May 21, 2012
1 parent 1d3dbda commit 5a84775
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions arch/blackfin/mach-bf609/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ void bfin_deepsleep(unsigned long mask)

bfin_write32(DPM0_WAKE_EN, 0x10);
bfin_write32(DPM0_WAKE_POL, 0x10);
dpm0_ctl = bfin_read32(DPM0_CTL);
dpm0_ctl = 0x00000008;
bfin_write32(DPM0_CTL, dpm0_ctl);
SSYNC();
Expand All @@ -149,13 +148,13 @@ void bfin_deepsleep(unsigned long mask)
);
#ifdef CONFIG_BFIN_PM_WAKEUP_TIME_BENCH
__asm__ __volatile__(
"%0 = 0;"
"CYCLES = %0;"
"CYCLES2 = %0;"
"%0 = SYSCFG;"
"BITSET(%0, 1);"
"SYSCFG = %0;"
: "=d,a" (dpm0_ctl) :
"R0 = 0;"
"CYCLES = R0;"
"CYCLES2 = R0;"
"R0 = SYSCFG;"
"BITSET(R0, 1);"
"SYSCFG = R0;"
: : : "R0"
);
#endif

Expand Down

0 comments on commit 5a84775

Please sign in to comment.