FreeCalypso > hg > fc-magnetite
changeset 291:21d128939204
implemented build option to disable sleep
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 31 Aug 2017 06:01:10 +0000 |
parents | 8a23632ee0e0 |
children | 85b38e37810b |
files | components/cst configure.sh src/cs/services/cst/cst_pei.c |
diffstat | 3 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/components/cst Sun Aug 27 06:33:05 2017 +0000 +++ b/components/cst Thu Aug 31 06:01:10 2017 +0000 @@ -15,6 +15,11 @@ CPPFLAGS="$CPPFLAGS -DTOOL_CHOICE=0" CPPFLAGS="$CPPFLAGS -D_TMS470" +if [ "$DISABLE_SLEEP" = 1 ] +then + CPPFLAGS="$CPPFLAGS -DDISABLE_SLEEP" +fi + # Includes CPPFLAGS="$CPPFLAGS -I$SRC/$CONDAT/com/include"
--- a/configure.sh Sun Aug 27 06:33:05 2017 +0000 +++ b/configure.sh Thu Aug 31 06:01:10 2017 +0000 @@ -45,6 +45,8 @@ exit 1 fi +DISABLE_SLEEP=0 + . "targets/$TARGET.conf" BUILD_DIR="build-$TARGET-$CONFIG" @@ -148,6 +150,7 @@ # invoke the configuration recipe export BUILD_DIR TARGET USE_STR2IND +export DISABLE_SLEEP export INIT_blob SUBDIR=
--- a/src/cs/services/cst/cst_pei.c Sun Aug 27 06:33:05 2017 +0000 +++ b/src/cs/services/cst/cst_pei.c Thu Aug 31 06:01:10 2017 +0000 @@ -30,6 +30,9 @@ #include "config/swconfig.cfg" #include "config/chipset.cfg" +#ifndef DISABLE_SLEEP +#define DISABLE_SLEEP 0 +#endif #define ENTITY_CST @@ -251,11 +254,13 @@ #if !defined (TI_VERSION) #if (CHIPSET == 0) power_down_config(NO_SLEEP, ARMIO_CLK | UWIRE_CLK | SIM_CLK | UART_CLK); + #elif (DISABLE_SLEEP == 1) + power_down_config(NO_SLEEP, UWIRE_CLK_CUT); #elif ((CHIPSET == 2) || (CHIPSET == 3) || \ (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11)) power_down_config(ALL_SLEEP, UWIRE_CLK_CUT); #elif ((CHIPSET == 4) || (CHIPSET == 9)) - power_down_config(NO_SLEEP, UWIRE_CLK_CUT); + power_down_config(NO_SLEEP, UWIRE_CLK_CUT); #endif #endif #endif