FreeCalypso > hg > fc-magnetite
diff src/cs/services/cst/cst_pei.c @ 291:21d128939204
implemented build option to disable sleep
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 31 Aug 2017 06:01:10 +0000 |
parents | 945cf7f506b2 |
children |
line wrap: on
line diff
--- 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