summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-07-13 13:19:01 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-07-14 04:01:46 -0700
commit98a1d2f9c731968e0258d8614b0a83d34391f222 (patch)
tree109998a35991536d329ff4b960365c51ec369fb1
parent921e9b71258c318f364457d97a94d3fb9e1bbbfc (diff)
downloadchrome-ec-98a1d2f9c731968e0258d8614b0a83d34391f222.tar.gz
Fizz: Boot automatically on recovery request
This patch clears RESET_FLAG_AP_OFF on recovery boot so that the system boots immediately regardless of the previous power state. BUG=b:63669512 BRANCH=none TEST=Verify the followings on reworked Fizz: 1. Press RB and PB in S0: FAIL(*1)/PASS 2. Press RB and PB in S5: FAIL(*1)/PASS 3. Unplug AC in S0 then press RB and plug in AC: PASS/PASS 4. Unplug AC in S5 then press RB and plug in AC: PASS/PASS (*1: b:63668669) Change-Id: If300fc9ec28ff0f7833e84a02e174e501b6a5016 Reviewed-on: https://chromium-review.googlesource.com/570948 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--common/button.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/button.c b/common/button.c
index bc66ae6611..05217060cc 100644
--- a/common/button.c
+++ b/common/button.c
@@ -180,6 +180,7 @@ void button_init(void)
#ifdef CONFIG_BUTTON_RECOVERY
if (is_recovery_boot()) {
+ system_clear_reset_flags(RESET_FLAG_AP_OFF);
host_set_single_event(EC_HOST_EVENT_KEYBOARD_RECOVERY);
button_check_hw_reinit_required();
}