summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
Diffstat (limited to 'power')
-rw-r--r--power/braswell.c15
-rw-r--r--power/common.c4
-rw-r--r--power/skylake.c19
3 files changed, 0 insertions, 38 deletions
diff --git a/power/braswell.c b/power/braswell.c
index 5998e99339..bfdf3dec39 100644
--- a/power/braswell.c
+++ b/power/braswell.c
@@ -329,18 +329,3 @@ enum power_state power_handle_state(enum power_state state)
}
return state;
}
-
-#ifdef CONFIG_LOW_POWER_PSEUDO_G3
-void enter_pseudo_g3(void)
-{
- CPRINTS("Enter Psuedo G3");
- cflush();
-
- gpio_set_level(GPIO_EC_HIB_L, 1);
- gpio_set_level(GPIO_SMC_SHUTDOWN, 1);
-
- /* Power to EC should shut down now */
- while (1)
- ;
-}
-#endif
diff --git a/power/common.c b/power/common.c
index cf456b54f0..f455b3a3b3 100644
--- a/power/common.c
+++ b/power/common.c
@@ -192,12 +192,8 @@ static enum power_state power_common_state(enum power_state state)
* Time's up. Hibernate until wake pin
* asserted.
*/
-#ifdef CONFIG_LOW_POWER_PSEUDO_G3
- enter_pseudo_g3();
-#else
CPRINTS("hibernating");
system_hibernate(0, 0);
-#endif
} else {
uint64_t wait = target_time - time_now;
if (wait > TASK_MAX_WAIT_US)
diff --git a/power/skylake.c b/power/skylake.c
index 9b3b74c4bf..7346ad95a6 100644
--- a/power/skylake.c
+++ b/power/skylake.c
@@ -417,25 +417,6 @@ enum power_state power_handle_state(enum power_state state)
return new_state;
}
-#ifdef CONFIG_LOW_POWER_PSEUDO_G3
-void enter_pseudo_g3(void)
-{
- CPRINTS("Enter Psuedo G3");
-
- /*
- * Clean up the UART buffer and prevent any unwanted garbage characters
- * before power off and also ensure above debug message is printed.
- */
- cflush();
-
- gpio_set_level(GPIO_G3_SLEEP_EN, 1);
-
- /* Power to EC should shut down now */
- while (1)
- ;
-}
-#endif
-
#ifdef CONFIG_POWER_S0IX
static struct {
int required; /* indicates de-bounce required. */