comparison 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
comparison
equal deleted inserted replaced
290:8a23632ee0e0 291:21d128939204
28 #endif 28 #endif
29 29
30 #include "config/swconfig.cfg" 30 #include "config/swconfig.cfg"
31 #include "config/chipset.cfg" 31 #include "config/chipset.cfg"
32 32
33 #ifndef DISABLE_SLEEP
34 #define DISABLE_SLEEP 0
35 #endif
33 36
34 #define ENTITY_CST 37 #define ENTITY_CST
35 38
36 /*==== INCLUDES ===================================================*/ 39 /*==== INCLUDES ===================================================*/
37 40
249 // WARNING !! THE SLEEP MODE SHOULD NOT BE MODIFIED ONCE THE SYSTEM INIT IS FINISHED !! 252 // WARNING !! THE SLEEP MODE SHOULD NOT BE MODIFIED ONCE THE SYSTEM INIT IS FINISHED !!
250 253
251 #if !defined (TI_VERSION) 254 #if !defined (TI_VERSION)
252 #if (CHIPSET == 0) 255 #if (CHIPSET == 0)
253 power_down_config(NO_SLEEP, ARMIO_CLK | UWIRE_CLK | SIM_CLK | UART_CLK); 256 power_down_config(NO_SLEEP, ARMIO_CLK | UWIRE_CLK | SIM_CLK | UART_CLK);
257 #elif (DISABLE_SLEEP == 1)
258 power_down_config(NO_SLEEP, UWIRE_CLK_CUT);
254 #elif ((CHIPSET == 2) || (CHIPSET == 3) || \ 259 #elif ((CHIPSET == 2) || (CHIPSET == 3) || \
255 (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11)) 260 (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11))
256 power_down_config(ALL_SLEEP, UWIRE_CLK_CUT); 261 power_down_config(ALL_SLEEP, UWIRE_CLK_CUT);
257 #elif ((CHIPSET == 4) || (CHIPSET == 9)) 262 #elif ((CHIPSET == 4) || (CHIPSET == 9))
258 power_down_config(NO_SLEEP, UWIRE_CLK_CUT); 263 power_down_config(NO_SLEEP, UWIRE_CLK_CUT);
259 #endif 264 #endif
260 #endif 265 #endif
261 #endif 266 #endif
262 267
263 return PEI_OK; 268 return PEI_OK;