# HG changeset patch # User Mychaela Falconia # Date 1504973817 0 # Node ID bceffa414fc6fcb3bae170e8289af031b57002c3 # Parent ef5376a04b8c9f6b74c760dec60edc0405f5b52d cst_pei.c: added the same support for DISABLE_SLEEP as in Magnetite diff -r ef5376a04b8c -r bceffa414fc6 g23m-glue/cst/cst_pei.c --- a/g23m-glue/cst/cst_pei.c Wed May 17 06:38:58 2017 +0000 +++ b/g23m-glue/cst/cst_pei.c Sat Sep 09 16:16:57 2017 +0000 @@ -31,6 +31,10 @@ #include "fixedconf.h" #include "condat-features.h" +#ifndef DISABLE_SLEEP +#define DISABLE_SLEEP 0 +#endif + #define ENTITY_CST /*==== INCLUDES ===================================================*/ @@ -251,11 +255,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