summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-07-28 17:34:16 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-07-28 17:34:31 +0200
commit16f10e2abddb3a6cb6e3a7098ff0c190c0635401 (patch)
treed9d6456b62a17bad6be3c6e00a89708cb8d9e4b5
parentc75aac84243abef6a5b7e2e84863cef13931ee8f (diff)
downloadrockbox-16f10e2abddb3a6cb6e3a7098ff0c190c0635401.tar.gz
rockbox-16f10e2abddb3a6cb6e3a7098ff0c190c0635401.zip
Revert "Fix Red on PowerSave in Simulator"
This reverts commit 568b81202ebd24a3f7e9efe0558b5f6beed05b44. Change-Id: I2af42cd53d0ce490bf96c68288e9fbde034c0069
-rw-r--r--firmware/export/config/sansac200v2.h2
-rw-r--r--firmware/export/config/sansaclip.h2
-rw-r--r--firmware/export/config/sansaclipplus.h2
-rw-r--r--firmware/export/config/sansaclipv2.h2
-rw-r--r--firmware/export/config/sansaclipzip.h2
-rw-r--r--firmware/export/config/sansae200v2.h2
-rw-r--r--firmware/export/config/sansafuze.h2
-rw-r--r--firmware/export/config/sansafuzev2.h2
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c2
9 files changed, 8 insertions, 10 deletions
diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h
index 31cedb3866..98fbb570fb 100644
--- a/firmware/export/config/sansac200v2.h
+++ b/firmware/export/config/sansac200v2.h
@@ -196,7 +196,7 @@
196/*define this to enable CPU voltage scaling on AMS devices*/ 196/*define this to enable CPU voltage scaling on AMS devices*/
197#define HAVE_ADJUSTABLE_CPU_VOLTAGE 197#define HAVE_ADJUSTABLE_CPU_VOLTAGE
198 198
199#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 199#ifndef BOOTLOADER
200/*define this with flags for power saving options device supports*/ 200/*define this with flags for power saving options device supports*/
201#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK) 201#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
202#endif 202#endif
diff --git a/firmware/export/config/sansaclip.h b/firmware/export/config/sansaclip.h
index 09151647e2..f0300c2ac1 100644
--- a/firmware/export/config/sansaclip.h
+++ b/firmware/export/config/sansaclip.h
@@ -189,7 +189,7 @@
189/*define this to enable CPU voltage scaling on AMS devices*/ 189/*define this to enable CPU voltage scaling on AMS devices*/
190#define HAVE_ADJUSTABLE_CPU_VOLTAGE 190#define HAVE_ADJUSTABLE_CPU_VOLTAGE
191 191
192#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 192#ifndef BOOTLOADER
193/*define this with flags for power saving options device supports*/ 193/*define this with flags for power saving options device supports*/
194#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK) 194#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
195#endif 195#endif
diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h
index f590a0f6e2..9a307420f4 100644
--- a/firmware/export/config/sansaclipplus.h
+++ b/firmware/export/config/sansaclipplus.h
@@ -206,7 +206,7 @@
206/*define this to enable CPU voltage scaling on AMS devices*/ 206/*define this to enable CPU voltage scaling on AMS devices*/
207#define HAVE_ADJUSTABLE_CPU_VOLTAGE 207#define HAVE_ADJUSTABLE_CPU_VOLTAGE
208 208
209#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 209#ifndef BOOTLOADER
210/*define this with flags for power saving options device supports*/ 210/*define this with flags for power saving options device supports*/
211#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP) 211#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
212#endif 212#endif
diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h
index e35341fa60..81a0d4703f 100644
--- a/firmware/export/config/sansaclipv2.h
+++ b/firmware/export/config/sansaclipv2.h
@@ -200,7 +200,7 @@
200/*define this to enable CPU voltage scaling on AMS devices*/ 200/*define this to enable CPU voltage scaling on AMS devices*/
201#define HAVE_ADJUSTABLE_CPU_VOLTAGE 201#define HAVE_ADJUSTABLE_CPU_VOLTAGE
202 202
203#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 203#ifndef BOOTLOADER
204/*define this with flags for power saving options device supports*/ 204/*define this with flags for power saving options device supports*/
205#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK) 205#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
206#endif 206#endif
diff --git a/firmware/export/config/sansaclipzip.h b/firmware/export/config/sansaclipzip.h
index 42200bfd5f..8464603c34 100644
--- a/firmware/export/config/sansaclipzip.h
+++ b/firmware/export/config/sansaclipzip.h
@@ -205,7 +205,7 @@
205/*define this to enable CPU voltage scaling on AMS devices*/ 205/*define this to enable CPU voltage scaling on AMS devices*/
206#define HAVE_ADJUSTABLE_CPU_VOLTAGE 206#define HAVE_ADJUSTABLE_CPU_VOLTAGE
207 207
208#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 208#ifndef BOOTLOADER
209/*define this with flags for power saving options device supports*/ 209/*define this with flags for power saving options device supports*/
210#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP) 210#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
211#endif 211#endif
diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h
index 5c652a0e13..50e1843189 100644
--- a/firmware/export/config/sansae200v2.h
+++ b/firmware/export/config/sansae200v2.h
@@ -216,7 +216,7 @@
216/*define this to enable CPU voltage scaling on AMS devices*/ 216/*define this to enable CPU voltage scaling on AMS devices*/
217#define HAVE_ADJUSTABLE_CPU_VOLTAGE 217#define HAVE_ADJUSTABLE_CPU_VOLTAGE
218 218
219#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 219#ifndef BOOTLOADER
220/*define this with flags for power saving options device supports*/ 220/*define this with flags for power saving options device supports*/
221#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK) 221#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
222#endif 222#endif
diff --git a/firmware/export/config/sansafuze.h b/firmware/export/config/sansafuze.h
index 40c373d103..dedf8c44da 100644
--- a/firmware/export/config/sansafuze.h
+++ b/firmware/export/config/sansafuze.h
@@ -222,7 +222,7 @@
222/*define this to enable CPU voltage scaling on AMS devices*/ 222/*define this to enable CPU voltage scaling on AMS devices*/
223#define HAVE_ADJUSTABLE_CPU_VOLTAGE 223#define HAVE_ADJUSTABLE_CPU_VOLTAGE
224 224
225#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 225#ifndef BOOTLOADER
226/*define this with flags for power saving options device supports*/ 226/*define this with flags for power saving options device supports*/
227#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK) 227#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
228#endif 228#endif
diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h
index 694d77ae61..3190930b56 100644
--- a/firmware/export/config/sansafuzev2.h
+++ b/firmware/export/config/sansafuzev2.h
@@ -224,7 +224,7 @@
224/*define this to enable CPU voltage scaling on AMS devices*/ 224/*define this to enable CPU voltage scaling on AMS devices*/
225#define HAVE_ADJUSTABLE_CPU_VOLTAGE 225#define HAVE_ADJUSTABLE_CPU_VOLTAGE
226 226
227#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR)) 227#ifndef BOOTLOADER
228/*define this with flags for power saving options device supports*/ 228/*define this with flags for power saving options device supports*/
229#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK) 229#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
230#endif 230#endif
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index 2c04508089..9e4a86acbe 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -215,7 +215,6 @@ static void enable_controller_mci(bool on)
215/* AMS v1 have two different drive interfaces MCI_SD(XPD) and GGU_IDE */ 215/* AMS v1 have two different drive interfaces MCI_SD(XPD) and GGU_IDE */
216static void enable_controller(bool on, const int drive) 216static void enable_controller(bool on, const int drive)
217{ 217{
218 (void) on;
219 218
220 if (drive == INTERNAL_AS3525) 219 if (drive == INTERNAL_AS3525)
221 { 220 {
@@ -236,7 +235,6 @@ static void enable_controller(bool on, const int drive)
236 else 235 else
237 enable_controller_mci(on); 236 enable_controller_mci(on);
238#endif 237#endif
239
240} 238}
241 239
242#ifdef HAVE_HOTSWAP 240#ifdef HAVE_HOTSWAP