Fix Red on PowerSave in Simulator

Change-Id: Ic5d9de230efceabc2c428e5c78fa6596a5a34840
This commit is contained in:
William Wilgus 2018-07-28 14:55:52 +02:00
parent 6f0320a953
commit 568b81202e
9 changed files with 10 additions and 8 deletions

View file

@ -196,7 +196,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
#endif

View file

@ -189,7 +189,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
#endif

View file

@ -206,7 +206,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
#endif

View file

@ -200,7 +200,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
#endif

View file

@ -205,7 +205,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK | POWERSV_DISP)
#endif

View file

@ -216,7 +216,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
#endif

View file

@ -222,7 +222,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
#endif

View file

@ -224,7 +224,7 @@
/*define this to enable CPU voltage scaling on AMS devices*/
#define HAVE_ADJUSTABLE_CPU_VOLTAGE
#ifndef BOOTLOADER
#if (!defined(BOOTLOADER)) && (!defined(SIMULATOR))
/*define this with flags for power saving options device supports*/
#define CONFIG_POWER_SAVING (POWERSV_CPU | POWERSV_I2C | POWERSV_DISK)
#endif

View file

@ -215,6 +215,7 @@ static void enable_controller_mci(bool on)
/* AMS v1 have two different drive interfaces MCI_SD(XPD) and GGU_IDE */
static void enable_controller(bool on, const int drive)
{
(void) on;
if (drive == INTERNAL_AS3525)
{
@ -235,6 +236,7 @@ static void enable_controller(bool on, const int drive)
else
enable_controller_mci(on);
#endif
}
#ifdef HAVE_HOTSWAP