diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2007-05-21 12:09:16 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-21 18:50:21 +0200 |
commit | d1b945fdb62f3e6852fea5a8779c0151ac1e55a8 (patch) | |
tree | d7c46472f4015534f383a724f79ee36454fe58bf /include/asm-blackfin/mach-bf533 | |
parent | Blackfin arch: Fix reserved map after we changed PORT_H definition (diff) | |
download | linux-d1b945fdb62f3e6852fea5a8779c0151ac1e55a8.tar.xz linux-d1b945fdb62f3e6852fea5a8779c0151ac1e55a8.zip |
Blackfin arch: Move write to VR_CTL closer to IDLE
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-blackfin/mach-bf533')
-rw-r--r-- | include/asm-blackfin/mach-bf533/cdefBF532.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-blackfin/mach-bf533/cdefBF532.h b/include/asm-blackfin/mach-bf533/cdefBF532.h index 1d7c494ceb64..521bdb4d297d 100644 --- a/include/asm-blackfin/mach-bf533/cdefBF532.h +++ b/include/asm-blackfin/mach-bf533/cdefBF532.h @@ -63,12 +63,14 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) { unsigned long flags, iwr; - bfin_write16(VR_CTL, val); - __builtin_bfin_ssync(); /* Enable the PLL Wakeup bit in SIC IWR */ iwr = bfin_read32(SIC_IWR); /* Only allow PPL Wakeup) */ bfin_write32(SIC_IWR, IWR_ENABLE(0)); + + bfin_write16(VR_CTL, val); + __builtin_bfin_ssync(); + local_irq_save(flags); asm("IDLE;"); local_irq_restore(flags); |