summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2013-10-23 08:12:00 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-23 20:07:02 +0000
commit2464d08e4d310a3f63208f22df4502c5250c4b58 (patch)
treeb793becf59540c442d8da72b140c5524c72a981a
parent2d4ece9b69978c6b03af6f763c8d23ad62239948 (diff)
downloadchrome-ec-2464d08e4d310a3f63208f22df4502c5250c4b58.tar.gz
bolt: Leave WiFi power on in S3
This improves WiFi stability after resume since powering down may erase or otherwise stymy the firmware. Signed-off-by: Paul Stewart <pstew@chromium.org> BUG=chrome-os-partner:22175 BRANCH=none TEST=Suspend and resume bolt, make sure WiFi is still operable Change-Id: Ia9e39464955b373e6f03a36ca5af5c475e957208 Reviewed-on: https://chromium-review.googlesource.com/174257 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org>
-rw-r--r--board/bolt/power_sequence.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/bolt/power_sequence.c b/board/bolt/power_sequence.c
index 1549f75d8c..0e458aeb26 100644
--- a/board/bolt/power_sequence.c
+++ b/board/bolt/power_sequence.c
@@ -332,8 +332,9 @@ enum x86_state x86_handle_state(enum x86_state state)
/* Disable +CPU_CORE */
gpio_set_level(GPIO_VCORE_EN, 0);
- /* Disable wireless */
- wireless_enable(0);
+ /* Disable WWAN, but leave WiFi on */
+ wireless_enable(EC_WIRELESS_SWITCH_WLAN |
+ EC_WIRELESS_SWITCH_WLAN_POWER);
/*
* Deassert prochot since CPU is off and we're about to drop
@@ -351,6 +352,9 @@ enum x86_state x86_handle_state(enum x86_state state)
/* Call hooks before we remove power rails */
hook_notify(HOOK_CHIPSET_SHUTDOWN);
+ /* Disable wireless */
+ wireless_enable(0);
+
/* Disable touchpad power */
gpio_set_level(GPIO_ENABLE_TOUCHPAD, 0);