summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2015-07-15 19:15:14 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-21 01:34:21 +0000
commit26db470b39687b5abbbc8c5a5c8ac334a900fbae (patch)
tree5b7e41c76e82b87fbcb5ed82827b8672f880c17a /power
parentaaafd2da282d125ccea8cad1b9bea09639db33cd (diff)
downloadchrome-ec-26db470b39687b5abbbc8c5a5c8ac334a900fbae.tar.gz
Skylake: Add G3 sleep mode support
BUG=none TEST=Enabled the config and tested on Kunimitsu. Enter "shutdown -h now" form the Kernel console. Device goes to Sleep mode in G3 and charger LED turns off. BRANCH=none Change-Id: I962018dcfac2998ee0a11784adeceb09931b930d Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/286781 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/skylake.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/power/skylake.c b/power/skylake.c
index 946d8e169b..ab4fb70c50 100644
--- a/power/skylake.c
+++ b/power/skylake.c
@@ -260,6 +260,9 @@ enum power_state power_handle_state(enum power_state state)
return POWER_S5G3;
case POWER_S5G3:
+#ifdef CONFIG_G3_SLEEP
+ gpio_set_level(GPIO_G3_SLEEP_EN, 1);
+#endif
return POWER_G3;
default: