aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorSteven Miao <realmz6@gmail.com>2012-05-17 05:38:09 -0400
committerBob Liu <lliubbo@gmail.com>2012-05-21 02:54:55 -0400
commit5a84775e999a5579e10f7297776c71b0be2ebd74 (patch)
tree0c730544b7e57c5ecc418771527677392d7ead1c /arch/blackfin
parent1d3dbda6ed0216971291a48531e7b2578ddf7642 (diff)
blackfin: mach-bf609: pm: cleanup bfin_deepsleep
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>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf609/pm.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/blackfin/mach-bf609/pm.c b/arch/blackfin/mach-bf609/pm.c
index 849d77e5631c..df3b9b973f62 100644
--- a/arch/blackfin/mach-bf609/pm.c
+++ b/arch/blackfin/mach-bf609/pm.c
@@ -138,7 +138,6 @@ void bfin_deepsleep(unsigned long mask)
138 138
139 bfin_write32(DPM0_WAKE_EN, 0x10); 139 bfin_write32(DPM0_WAKE_EN, 0x10);
140 bfin_write32(DPM0_WAKE_POL, 0x10); 140 bfin_write32(DPM0_WAKE_POL, 0x10);
141 dpm0_ctl = bfin_read32(DPM0_CTL);
142 dpm0_ctl = 0x00000008; 141 dpm0_ctl = 0x00000008;
143 bfin_write32(DPM0_CTL, dpm0_ctl); 142 bfin_write32(DPM0_CTL, dpm0_ctl);
144 SSYNC(); 143 SSYNC();
@@ -149,13 +148,13 @@ void bfin_deepsleep(unsigned long mask)
149 ); 148 );
150#ifdef CONFIG_BFIN_PM_WAKEUP_TIME_BENCH 149#ifdef CONFIG_BFIN_PM_WAKEUP_TIME_BENCH
151 __asm__ __volatile__( 150 __asm__ __volatile__(
152 "%0 = 0;" 151 "R0 = 0;"
153 "CYCLES = %0;" 152 "CYCLES = R0;"
154 "CYCLES2 = %0;" 153 "CYCLES2 = R0;"
155 "%0 = SYSCFG;" 154 "R0 = SYSCFG;"
156 "BITSET(%0, 1);" 155 "BITSET(R0, 1);"
157 "SYSCFG = %0;" 156 "SYSCFG = R0;"
158 : "=d,a" (dpm0_ctl) : 157 : : : "R0"
159 ); 158 );
160#endif 159#endif
161 160