diff options
Diffstat (limited to 'include/asm-blackfin/mach-bf533/cdefBF532.h')
-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) | |||
63 | { | 63 | { |
64 | unsigned long flags, iwr; | 64 | unsigned long flags, iwr; |
65 | 65 | ||
66 | bfin_write16(VR_CTL, val); | ||
67 | __builtin_bfin_ssync(); | ||
68 | /* Enable the PLL Wakeup bit in SIC IWR */ | 66 | /* Enable the PLL Wakeup bit in SIC IWR */ |
69 | iwr = bfin_read32(SIC_IWR); | 67 | iwr = bfin_read32(SIC_IWR); |
70 | /* Only allow PPL Wakeup) */ | 68 | /* Only allow PPL Wakeup) */ |
71 | bfin_write32(SIC_IWR, IWR_ENABLE(0)); | 69 | bfin_write32(SIC_IWR, IWR_ENABLE(0)); |
70 | |||
71 | bfin_write16(VR_CTL, val); | ||
72 | __builtin_bfin_ssync(); | ||
73 | |||
72 | local_irq_save(flags); | 74 | local_irq_save(flags); |
73 | asm("IDLE;"); | 75 | asm("IDLE;"); |
74 | local_irq_restore(flags); | 76 | local_irq_restore(flags); |