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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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)
@@ -375,6 +375,7 @@

             if (ev.id == SYS_HOTSWAP_INSERTED)
             {
+                cpu_boost(true); 
                 sd_enable(true);
                 init_pl180_controller(SD_SLOT_AS3525);
                 microsd_init = sd_init_card(SD_SLOT_AS3525);
@@ -382,6 +383,7 @@
                     panicf("microSD init failed : %d", microsd_init);

                 microsd_init = disk_mount(SD_SLOT_AS3525); /* 0 if fail */
+                cpu_boost(false);
             }

             /*
@@ -634,6 +636,10 @@

     mutex_lock(&sd_mtx);
 #ifndef BOOTLOADER
+    if (drive == SD_SLOT_AS3525)
+    {
+        cpu_boost(true);
+    }
     sd_enable(true);
     led(true);
 #endif
@@ -765,6 +771,10 @@
 #ifndef BOOTLOADER
     led(false);
     sd_enable(false);
+    if (drive == SD_SLOT_AS3525)
+    {
+        cpu_boost(false);
+    }
 #endif

     if (ret)    /* error */