1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Index: firmware/target/arm/as3525/system-as3525.c
===================================================================
--- firmware/target/arm/as3525/system-as3525.c	(revision 21780)
+++ firmware/target/arm/as3525/system-as3525.c	(working copy)
@@ -34,6 +34,8 @@
 #endif
 #include "backlight-target.h"

+#define HAVE_ADJUSTABLE_CPU_VOLTAGE
+
 #define default_interrupt(name) \
   extern __attribute__((weak,alias("UIRQ"))) void name (void)

Index: firmware/target/arm/as3525/ata_sd_as3525.c
===================================================================
--- firmware/target/arm/as3525/ata_sd_as3525.c	(revision 21780)
+++ firmware/target/arm/as3525/ata_sd_as3525.c	(working copy)
@@ -827,6 +827,7 @@
 #endif
         CGU_IDE |= (1<<7)  /* AHB interface enable */  |
                    (1<<6)  /* interface enable */;
+        cpu_boost(true);
         sd_enabled = true;
     }
     else
@@ -841,6 +842,7 @@
         CGU_PERI &= ~CGU_MCI_CLOCK_ENABLE;
 #endif
         CGU_IDE &= ~((1<<7)|(1<<6));
+        cpu_boost(false);
         sd_enabled = false;
     }
 }