mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
Fix Red on PowerSave in Simulator
Change-Id: Ic5d9de230efceabc2c428e5c78fa6596a5a34840
This commit is contained in:
parent
6f0320a953
commit
568b81202e
9 changed files with 10 additions and 8 deletions
|
|
@ -196,7 +196,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@
|
||||||
/*define this to enable CPU voltage scaling on AMS devices*/
|
/*define this to enable CPU voltage scaling on AMS devices*/
|
||||||
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
|
||||||
/*define this with flags for power saving options device supports*/
|
/*define this with flags for power saving options device supports*/
|
||||||
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -215,6 +215,7 @@ static void enable_controller_mci(bool on)
|
||||||
/* AMS v1 have two different drive interfaces MCI_SD(XPD) and GGU_IDE */
|
/* AMS v1 have two different drive interfaces MCI_SD(XPD) and GGU_IDE */
|
||||||
static void enable_controller(bool on, const int drive)
|
static void enable_controller(bool on, const int drive)
|
||||||
{
|
{
|
||||||
|
(void) on;
|
||||||
|
|
||||||
if (drive == INTERNAL_AS3525)
|
if (drive == INTERNAL_AS3525)
|
||||||
{
|
{
|
||||||
|
|
@ -235,6 +236,7 @@ static void enable_controller(bool on, const int drive)
|
||||||
else
|
else
|
||||||
enable_controller_mci(on);
|
enable_controller_mci(on);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_HOTSWAP
|
#ifdef HAVE_HOTSWAP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue