diff options
Diffstat (limited to 'include/asm-blackfin/mach-bf537/cdefBF534.h')
-rw-r--r-- | include/asm-blackfin/mach-bf537/cdefBF534.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-blackfin/mach-bf537/cdefBF534.h b/include/asm-blackfin/mach-bf537/cdefBF534.h index 7b658c175f85..9a167f3b224e 100644 --- a/include/asm-blackfin/mach-bf537/cdefBF534.h +++ b/include/asm-blackfin/mach-bf537/cdefBF534.h | |||
@@ -51,12 +51,14 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) | |||
51 | { | 51 | { |
52 | unsigned long flags, iwr; | 52 | unsigned long flags, iwr; |
53 | 53 | ||
54 | bfin_write16(VR_CTL, val); | ||
55 | __builtin_bfin_ssync(); | ||
56 | /* Enable the PLL Wakeup bit in SIC IWR */ | 54 | /* Enable the PLL Wakeup bit in SIC IWR */ |
57 | iwr = bfin_read32(SIC_IWR); | 55 | iwr = bfin_read32(SIC_IWR); |
58 | /* Only allow PPL Wakeup) */ | 56 | /* Only allow PPL Wakeup) */ |
59 | bfin_write32(SIC_IWR, IWR_ENABLE(0)); | 57 | bfin_write32(SIC_IWR, IWR_ENABLE(0)); |
58 | |||
59 | bfin_write16(VR_CTL, val); | ||
60 | __builtin_bfin_ssync(); | ||
61 | |||
60 | local_irq_save(flags); | 62 | local_irq_save(flags); |
61 | asm("IDLE;"); | 63 | asm("IDLE;"); |
62 | local_irq_restore(flags); | 64 | local_irq_restore(flags); |