diff options
Diffstat (limited to 'include/asm-blackfin/mach-bf561')
-rw-r--r-- | include/asm-blackfin/mach-bf561/cdefBF561.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-blackfin/mach-bf561/cdefBF561.h b/include/asm-blackfin/mach-bf561/cdefBF561.h index 5dc0ed835447..b14f872e5703 100644 --- a/include/asm-blackfin/mach-bf561/cdefBF561.h +++ b/include/asm-blackfin/mach-bf561/cdefBF561.h | |||
@@ -59,12 +59,14 @@ static __inline__ void bfin_write_VR_CTL(unsigned int val) | |||
59 | { | 59 | { |
60 | unsigned long flags, iwr; | 60 | unsigned long flags, iwr; |
61 | 61 | ||
62 | bfin_write16(VR_CTL, val); | ||
63 | __builtin_bfin_ssync(); | ||
64 | /* Enable the PLL Wakeup bit in SIC IWR */ | 62 | /* Enable the PLL Wakeup bit in SIC IWR */ |
65 | iwr = bfin_read32(SICA_IWR0); | 63 | iwr = bfin_read32(SICA_IWR0); |
66 | /* Only allow PPL Wakeup) */ | 64 | /* Only allow PPL Wakeup) */ |
67 | bfin_write32(SICA_IWR0, IWR_ENABLE(0)); | 65 | bfin_write32(SICA_IWR0, IWR_ENABLE(0)); |
66 | |||
67 | bfin_write16(VR_CTL, val); | ||
68 | __builtin_bfin_ssync(); | ||
69 | |||
68 | local_irq_save(flags); | 70 | local_irq_save(flags); |
69 | asm("IDLE;"); | 71 | asm("IDLE;"); |
70 | local_irq_restore(flags); | 72 | local_irq_restore(flags); |