summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/as3525/system-as3525.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index b77f3dee9b..828ed2ef3e 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -330,9 +330,10 @@ void set_cpu_frequency(long frequency)
330 { 330 {
331 /* Increasing frequency so boost voltage before change */ 331 /* Increasing frequency so boost voltage before change */
332 ascodec_write(AS3514_CVDD_DCDC3, (AS314_CP_DCDC3_SETTING | CVDD_1_20)); 332 ascodec_write(AS3514_CVDD_DCDC3, (AS314_CP_DCDC3_SETTING | CVDD_1_20));
333 /* Confirm voltage is at least 1.20v before making fclk > 200 MHz */ 333 /* Wait for voltage to be at least 1.20v before making fclk > 200 MHz */
334 ascodec_write(AS3514_ADC_0, 4<<4); /* ADC Source = CVDD */ 334 do
335 while (ascodec_read(AS3514_ADC_1) < 0xe0); /* 0x1e0 *.0025 = 1.20 */ 335 ascodec_write(AS3514_ADC_0, 4<<4); /* ADC Input = CVDD */
336 while (ascodec_read(AS3514_ADC_1) < 0xe0); /* 0x1e0 *.0025 = 1.20v */
336 /* e0 = 8LSB's of 0x1e0 */ 337 /* e0 = 8LSB's of 0x1e0 */
337 asm volatile( 338 asm volatile(
338 "mrc p15, 0, r0, c1, c0 \n" 339 "mrc p15, 0, r0, c1, c0 \n"