FreeCalypso > hg > freecalypso-citrine
changeset 43:bceffa414fc6
cst_pei.c: added the same support for DISABLE_SLEEP as in Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 09 Sep 2017 16:16:57 +0000 |
parents | ef5376a04b8c |
children | 70c9bb37bd74 |
files | g23m-glue/cst/cst_pei.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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